fix test
diff --git a/test/http_multi_server_test.dart b/test/http_multi_server_test.dart
index 95f0b40..29c624f 100644
--- a/test/http_multi_server_test.dart
+++ b/test/http_multi_server_test.dart
@@ -222,11 +222,9 @@
test("uses the correct server address for 'any'", () async {
final server = await HttpMultiServer.bind('any', 0);
- if (await supportsIPv4) {
+ if (!await supportsIPv6) {
expect(server.address, InternetAddress.anyIPv4);
- }
-
- if (await supportsIPv6) {
+ } else {
expect(server.address, InternetAddress.anyIPv6);
}
});