Investigate the cause of flakiness in the WebSocket upgrade code path:
The test is a flaky failure on El Capitan and iOS simulator. It is failing and crashing on Windows.
@@ -4,8 +4,4 @@
Created a socket to 'wss://127.0.0.1:9323/websocket/tests/hybi/simple'; readyState 0.
The 'ws' protocol should be upgraded to 'wss'. If this happens, we will connect properly and the test will succeed.
-Connected; readyState 1
-Resolved URL: wss://127.0.0.1:9323/websocket/tests/hybi/simple
-Received: 'Hello from Simple WSH.'; readyState 1
-Closed; readyState 3.
About 1 in 1000 times I can get the test to time out, but I'm not seeing other failures. Since this test relies on an external Python server to do its work, we might be running into some flakiness with that dependency.
Will it reproduce when forced to run many copies of itself in parallel?