Skip to content

Commit

Permalink
[Perf] Fix batch sizes in SampleBatchTest (Azure#22352)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored and rakshith91 committed Apr 10, 2022
1 parent c5de6fc commit f572290
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
# --------------------------------------------------------------------------------------------

from azure_devtools.perfstress_tests import BatchPerfTest
import random

class MockReceiver():
def receive(self, min_messages=1, max_messages=5):
for i in range(min_messages, max_messages):
yield 1
for i in range(random.randint(min_messages, max_messages)):
yield i

class AsyncMockReceiver():
async def receive(self, min_messages=1, max_messages=5):
for i in range(min_messages, max_messages):
for i in range(random.randint(min_messages, max_messages)):
yield i


Expand Down

0 comments on commit f572290

Please sign in to comment.