Skip to content

Commit b94e497

Browse files
committed
Make the rate-limiting test more fancy
1 parent 7cb5ecd commit b94e497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rate_limiting_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
class MyTestClass(BaseCase):
66

7-
@decorators.rate_limited(4) # The arg is max calls per second
7+
@decorators.rate_limited(3.5) # The arg is max calls per second
88
def print_item(self, item):
99
print item
1010

1111
def test_rate_limited_printing(self):
1212
print "\nRunning rate-limited print test:"
13-
for item in xrange(10):
13+
for item in xrange(1,11):
1414
self.print_item(item)

0 commit comments

Comments
 (0)