summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-net-pingpong.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/simple/test-net-pingpong.js b/test/simple/test-net-pingpong.js
index f20ec057f..035e4f389 100644
--- a/test/simple/test-net-pingpong.js
+++ b/test/simple/test-net-pingpong.js
@@ -129,12 +129,19 @@ function pingPongTest(port, host) {
}
/* All are run at once, so run on different ports */
-pingPongTest(20989, 'localhost');
+if (!process.useUV) {
+ // these tests will not run yet with net_uv TODO: remove when net_uv supports dns
+ pingPongTest(20989, 'localhost');
+ pingPongTest(20997, '::1');
+ pingPongTest('/tmp/pingpong.sock');
+}
pingPongTest(20988);
-pingPongTest(20997, '::1');
-pingPongTest('/tmp/pingpong.sock');
-process.addListener('exit', function() {
- assert.equal(4, tests_run);
+process.addListener('exit', function () {
+ if (!process.useUV) {
+ assert.equal(4, tests_run);
+ } else {
+ assert.equal(1, tests_run);
+ }
console.log('done');
});