diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp index efcc9a35b..1d11f7626 100644 --- a/test/test_primitives.cpp +++ b/test/test_primitives.cpp @@ -733,8 +733,8 @@ int test_main() TEST_CHECK(parse_url_components("http://192.168.0.1/path/to/file", ec) == make_tuple("http", "", "192.168.0.1", 80, "/path/to/file")); - TEST_CHECK(parse_url_components("http://[::1]/path/to/file", ec) - == make_tuple("http", "", "[::1]", 80, "/path/to/file")); + TEST_CHECK(parse_url_components("http://[2001:ff00::1]:42/path/to/file", ec) + == make_tuple("http", "", "[2001:ff00::1]", 42, "/path/to/file")); // base64 test vectors from http://www.faqs.org/rfcs/rfc4648.html