Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 218dd38

Browse files
committed
Add a test wait.
1 parent 0571480 commit 218dd38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def socket_handler(listener):
480480
d.flags.add('END_STREAM')
481481
sock.send(d.serialize())
482482

483-
send_event.set()
483+
send_event.wait()
484484
sock.close()
485485

486486
self._start_server(socket_handler)
@@ -494,6 +494,8 @@ def socket_handler(listener):
494494
assert r.headers[b'Content-Type'] == b'not/real'
495495
assert r.content == b'1234567890' * 2
496496

497+
send_event.set()
498+
497499
self.tear_down()
498500

499501
def test_adapter_sending_values(self, monkeypatch):

0 commit comments

Comments
 (0)