Skip to content

Commit 1849ef6

Browse files
committed
test: Close a websocket client that causes occasional test failures
These failures occur on the build.yml workflow on the emulated arm64 platform: an ill-timed timer firing during test shutdown can result in a message being logged and the test failing for dirty logs.
1 parent fcb09eb commit 1849ef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tornado/test/websocket_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@ def test_client_ping(self):
807807
response = yield ws.read_message()
808808
self.assertEqual(response, "got ping")
809809
# TODO: test that the connection gets closed if ping responses stop.
810+
ws.close()
810811

811812

812813
class ManualPingTest(WebSocketBaseTestCase):

0 commit comments

Comments
 (0)