fix unit test
This commit is contained in:
@@ -95,13 +95,13 @@ class FakeApp(object):
|
||||
class FakeLogger(object):
|
||||
# a thread safe logger
|
||||
|
||||
def error(self, msg):
|
||||
def error(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def info(self, msg):
|
||||
def info(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def warning(self, msg):
|
||||
def warning(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
|
||||
@@ -261,6 +261,7 @@ class TestRateLimit(unittest.TestCase):
|
||||
# making clock less accurate for nosetests running slow
|
||||
self.test_ratelimit = dummy_filter_factory(conf_dict)(FakeApp())
|
||||
ratelimit.http_connect = mock_http_connect(204)
|
||||
self.test_ratelimit.log_sleep_time_seconds = .00001
|
||||
req = Request.blank('/v/a')
|
||||
req.environ['swift.cache'] = FakeMemcache()
|
||||
begin = time.time()
|
||||
|
Reference in New Issue
Block a user