Skip to content

Commit

Permalink
[Perf] Fix batch sizes in SampleBatchTest (#22352)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored Jan 6, 2022
1 parent fd5f23c commit 0a54295
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 0a54295

Please sign in to comment.