From 1849ef6c48415ef8f5fecbd47d9f68225588507c Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 23 Apr 2023 15:15:05 -0400 Subject: [PATCH] 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. --- tornado/test/websocket_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/test/websocket_test.py b/tornado/test/websocket_test.py index f90c5f2c0f..0a29ae6460 100644 --- a/tornado/test/websocket_test.py +++ b/tornado/test/websocket_test.py @@ -807,6 +807,7 @@ def test_client_ping(self): response = yield ws.read_message() self.assertEqual(response, "got ping") # TODO: test that the connection gets closed if ping responses stop. + ws.close() class ManualPingTest(WebSocketBaseTestCase):