Index: net/websockets/websocket_stream_test.cc |
diff --git a/net/websockets/websocket_stream_test.cc b/net/websockets/websocket_stream_test.cc |
index 0344cceb539810aaf0028477d316f31f6d6540b5..81a0ff05fa41e82861bed4b3dda5193593532452 100644 |
--- a/net/websockets/websocket_stream_test.cc |
+++ b/net/websockets/websocket_stream_test.cc |
@@ -82,6 +82,12 @@ class DeterministicKeyWebSocketHandshakeStreamCreateHelper |
class WebSocketStreamCreateTest : public ::testing::Test { |
public: |
WebSocketStreamCreateTest() : has_failed_(false), ssl_fatal_(false) {} |
+ virtual ~WebSocketStreamCreateTest() { |
+ url_request_context_host_.GetURLRequestContext() |
+ ->http_transaction_factory() |
+ ->GetCache() |
+ ->CloseAllConnections(); |
+ } |
void CreateAndConnectCustomResponse( |
const std::string& socket_url, |