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 10f33ec52996a4f681531e6a280f22667ae10bcf..616ac3f410ebeb0c48773ef8f858cf1f655ce880 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); |
} |