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