Index: net/socket/ssl_client_socket_unittest.cc |
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc |
index d55dc78ce7f04889f6d34651d3e670027941da07..a9379e82d879f47061356151451e065b58ba1c73 100644 |
--- a/net/socket/ssl_client_socket_unittest.cc |
+++ b/net/socket/ssl_client_socket_unittest.cc |
@@ -652,6 +652,8 @@ TEST_F(SSLClientSocketTest, PrematureApplicationData) { |
kDefaultSSLConfig)); |
rv = sock->Connect(callback.callback()); |
+ if (rv == net::ERR_IO_PENDING) |
+ rv = callback.WaitForResult(); |
EXPECT_EQ(net::ERR_SSL_PROTOCOL_ERROR, rv); |
} |