From b66165977e83dd96f95be8401daf83670f63acbd Mon Sep 17 00:00:00 2001 From: jfreegman Date: Thu, 25 Nov 2021 15:32:29 -0500 Subject: [PATCH] fix issue with save_load autotest The test explicitly wanted a UDP connection when a TCP connection would suffice. This was a remnant of back when the test was part of a multi-purpose autotest that didn't attempt to connect to TCP relays and needed a UDP connection specifically. --- auto_tests/save_load_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_tests/save_load_test.c b/auto_tests/save_load_test.c index 1e360b1b..5e511c7e 100644 --- a/auto_tests/save_load_test.c +++ b/auto_tests/save_load_test.c @@ -46,7 +46,7 @@ static void tox_connection_status(Tox *tox, Tox_Connection connection_status, vo ck_abort_msg("Tox went offline"); } - ck_assert_msg(connection_status == TOX_CONNECTION_UDP, "wrong status %d", connection_status); + ck_assert_msg(connection_status != TOX_CONNECTION_NONE, "wrong status %d", connection_status); connected_t1 = connection_status; }