aboutsummaryrefslogtreecommitdiff
path: root/tests/ws.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ws.c')
-rw-r--r--tests/ws.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ws.c b/tests/ws.c
index 56564c37..4e12a788 100644
--- a/tests/ws.c
+++ b/tests/ws.c
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -95,7 +95,7 @@ TestMain("WebSocket Transport", {
nng_close(s2);
nng_close(s1);
});
- trantest_next_address(addr, "ws://:%u/test");
+ trantest_next_address(addr, "ws4://:%u/test");
So(nng_listen(s1, addr, NULL, 0) == 0);
nng_msleep(100);
// reset port back one
@@ -114,7 +114,7 @@ TestMain("WebSocket Transport", {
nng_close(s2);
nng_close(s1);
});
- trantest_next_address(addr, "ws://*:%u/test");
+ trantest_next_address(addr, "ws4://*:%u/test");
So(nng_listen(s1, addr, NULL, 0) == 0);
nng_msleep(100);
// reset port back one
@@ -150,8 +150,8 @@ TestMain("WebSocket Transport", {
nng_close(s1);
nng_close(s2);
});
- So(nng_listen(s1, "ws://*:5599/one", NULL, 0) == 0);
- So(nng_listen(s1, "ws://*:5599/two", NULL, 0) == 0);
+ So(nng_listen(s1, "ws4://*:5599/one", NULL, 0) == 0);
+ So(nng_listen(s1, "ws4://*:5599/two", NULL, 0) == 0);
So(nng_dial(s2, "ws://127.0.0.1:5599/one", NULL, 0) == 0);
});