From f651625f748ace91ccd1cefe8fa84a5d13c6ed94 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 22 Sep 2016 15:47:46 +0200 Subject: [PATCH] test: remove `&socket` from test_inspector_socket What is `socket`, where did it came from? We don't know. On a more serious note: `socket` is function from `sys/socket.h`. There is no way casting it to structure could yield any useful results. --- test/cctest/test_inspector_socket.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/cctest/test_inspector_socket.cc b/test/cctest/test_inspector_socket.cc index f45593584abece..fd162603c102ee 100644 --- a/test/cctest/test_inspector_socket.cc +++ b/test/cctest/test_inspector_socket.cc @@ -504,7 +504,6 @@ TEST_F(InspectorSocketTest, ExtraTextBeforeRequest) { SPIN_WHILE(last_event != kInspectorHandshakeFailed); expect_handshake_failure(); EXPECT_EQ(uv_is_active(reinterpret_cast(&client_socket)), 0); - EXPECT_EQ(uv_is_active(reinterpret_cast(&socket)), 0); } TEST_F(InspectorSocketTest, ExtraLettersBeforeRequest) { @@ -516,7 +515,6 @@ TEST_F(InspectorSocketTest, ExtraLettersBeforeRequest) { SPIN_WHILE(last_event != kInspectorHandshakeFailed); expect_handshake_failure(); EXPECT_EQ(uv_is_active(reinterpret_cast(&client_socket)), 0); - EXPECT_EQ(uv_is_active(reinterpret_cast(&socket)), 0); } TEST_F(InspectorSocketTest, RequestWithoutKey) { @@ -531,7 +529,6 @@ TEST_F(InspectorSocketTest, RequestWithoutKey) { SPIN_WHILE(last_event != kInspectorHandshakeFailed); expect_handshake_failure(); EXPECT_EQ(uv_is_active(reinterpret_cast(&client_socket)), 0); - EXPECT_EQ(uv_is_active(reinterpret_cast(&socket)), 0); } TEST_F(InspectorSocketTest, KillsConnectionOnProtocolViolation) {