Skip to content

Commit 0fe0550

Browse files
committed
test cleanup
1 parent aa8a51a commit 0fe0550

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

rsocket/async_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
async def async_range(count: int):
55
for i in range(count):
66
yield i
7-
await asyncio.sleep(0.0)
7+
await asyncio.sleep(0)

tests/rsocket/test_concurrency.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def generator():
4040

4141
results = (await request_1, await request_2)
4242

43-
print(results)
43+
print(results[0].delta, results[1].delta)
4444
delta = abs(results[0].delta - results[1].delta)
4545

4646
assert len(results[0].result) == 2000
@@ -70,5 +70,3 @@ async def request_response(self, request: Payload):
7070
assert len(results[0].result.data) == 10000 * 100
7171
assert len(results[1].result.data) == 10 * 100
7272
assert delta > 0.2
73-
74-
await asyncio.sleep(2)

tests/tools/fixtures_quart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def ws():
3030
client_arguments = client_arguments or {}
3131
# client_arguments.update(test_overrides)
3232
server_task = asyncio.create_task(app.run_task(port=unused_tcp_port))
33-
await asyncio.sleep(0.1)
33+
await asyncio.sleep(0)
3434

3535
async with websocket_client('http://localhost:{}'.format(unused_tcp_port),
3636
**client_arguments) as client:

0 commit comments

Comments
 (0)