mirror of
				https://github.com/bspeice/metrik
				synced 2025-11-03 18:00:51 -05:00 
			
		
		
		
	Fix a test using the wrong collection
This commit is contained in:
		@ -25,7 +25,7 @@ class RateLimitTest(MongoTest):
 | 
				
			|||||||
        assert ratelimit.query_locks(onesec_back) == 0
 | 
					        assert ratelimit.query_locks(onesec_back) == 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ratelimit.save_lock(present)
 | 
					        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
 | 
					        assert ratelimit.query_locks(onesec_back) == 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_save_creates_correct_service(self):
 | 
					    def test_save_creates_correct_service(self):
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user