Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Oct 25, 2024
1 parent ca2d99f commit 0cb9e6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_stdin_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def run_process(test_file):
return 1


@tornado.gen.coroutine
def read_from_stream(stream, timeout=5):
start = time.time()
while time.time() - start < timeout:
Expand Down Expand Up @@ -50,7 +49,7 @@ def test_stdin_socket(self):
stdin_socket='test', use_sockets=True)

# check same socket in child fd 0
addr_string_actual = yield read_from_stream(stream)
addr_string_actual = yield from read_from_stream(stream)
addr_string_expected = "%s %s" % (sk.host, sk.port)
self.assertEqual(addr_string_actual, addr_string_expected)

Expand Down

0 comments on commit 0cb9e6e

Please sign in to comment.