1
0
mirror of https://github.com/bspeice/metrik synced 2024-11-23 07:38:09 -05:00

Fix a test using the wrong collection

This commit is contained in:
Bradlee Speice 2016-08-23 22:34:27 -04:00
parent 4d36403c59
commit 12bb7427e4

View File

@ -25,7 +25,7 @@ class RateLimitTest(MongoTest):
assert ratelimit.query_locks(onesec_back) == 0
ratelimit.save_lock(present)
assert self.db[service].count() == 1
assert self.db[MongoRateLimit.rate_limit_collection].count() == 1
assert ratelimit.query_locks(onesec_back) == 1
def test_save_creates_correct_service(self):