Skip to content

Commit 9891168

Browse files
michalpasztamobicaCruz Monrreal II
authored andcommitted
Greentea tests: set correct port to test against google.com
1 parent 8fe844d commit 9891168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/netsocket/tls/tlssocket_handshake_invalid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void TLSSOCKET_HANDSHAKE_INVALID()
3131
TLSSocket sock;
3232
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(NetworkInterface::get_default_instance()));
3333
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.set_root_ca_cert(tls_global::cert));
34-
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_CONNECTION,
35-
sock.connect("google.com", MBED_CONF_APP_ECHO_SERVER_DISCARD_PORT_TLS));
34+
TEST_ASSERT_EQUAL(NSAPI_ERROR_AUTH_FAILURE,
35+
sock.connect("google.com", 443)); // 443 is https port.
3636
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.close());
3737
}
3838

0 commit comments

Comments
 (0)