瀏覽代碼

Fix copy/paste error in test

bel 8 年之前
父節點
當前提交
55cca2da03
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/private.c

+ 1 - 1
test/private.c

@@ -430,7 +430,7 @@ START_TEST(test_parse_port_string)
 		ck_assert_int_ne(parse_port_string(&vec, &so, &ip_family), 0);
 		if (i < 7) {
 			ck_assert_int_eq(ip_family, 4);
-		} else if (i < 7) {
+		} else if (i < 10) {
 			ck_assert_int_eq(ip_family, 6);
 		} else {
 			ck_assert_int_eq(ip_family, 4 + 6);