Skip to content

Commit

Permalink
Fix BIOTest.InvokeConnectCallback test.
Browse files Browse the repository at this point in the history
Previously, the test tried to connect to localhost on port 8080, which
is a frequently used alternative HTTP port, and it failed if there was
anything listening on that port.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora committed Feb 5, 2024
1 parent 56def5a commit e68e439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bio/bio_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ TEST(BIOTest, InvokeConnectCallback) {
ASSERT_NE(bio, nullptr);

ASSERT_TRUE(BIO_set_conn_hostname(bio, "localhost"));
ASSERT_TRUE(BIO_set_conn_port(bio, "8080"));
ASSERT_TRUE(BIO_set_conn_port(bio, "4"));
ASSERT_TRUE(BIO_callback_ctrl(bio, BIO_CTRL_SET_CALLBACK, callback));

ASSERT_EQ(BIO_do_connect(bio), 0);
Expand Down

0 comments on commit e68e439

Please sign in to comment.