From 6fdec917ff794a8b84934aa4304aa300df612e0e Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 31 Mar 2016 20:30:28 -0400 Subject: [PATCH] Test fix. --- auto_tests/dht_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c index b424b79b..64aa1162 100644 --- a/auto_tests/dht_test.c +++ b/auto_tests/dht_test.c @@ -237,7 +237,8 @@ START_TEST(test_DHT_test) dhts[i] = new_DHT(new_networking(ip, DHT_DEFAULT_PORT + i)); ck_assert_msg(dhts[i] != 0, "Failed to create dht instances %u", i); - ck_assert_msg(dhts[i]->net->port != DHT_DEFAULT_PORT + i, "Bound to wrong port"); + ck_assert_msg(dhts[i]->net->port == htons(DHT_DEFAULT_PORT + i), "Bound to wrong port %u != %u", dhts[i]->net->port, + DHT_DEFAULT_PORT + i); } struct {