Last active
December 2, 2017 17:50
-
-
Save robertkowalski/7b9c0875cb7afdb8b944ef4b27059e1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/ping.js b/test/ping.js | |
index a9631d9..3288440 100644 | |
--- a/test/ping.js | |
+++ b/test/ping.js | |
@@ -44,6 +44,7 @@ test('testing clones', function (t) { | |
dht2.on('ready', function () { | |
dht2.destroy(function () { | |
+ //console.log("----") | |
dht3 = dht({bootstrap: ['127.0.0.1:10000']}) | |
dht3.on('ready', ping) | |
dht3.listen(20000) | |
@@ -53,6 +54,8 @@ test('testing clones', function (t) { | |
dht2.listen(20000) | |
function ping () { | |
+ console.log(dht3.nodes.toArray()) | |
+ console.log(dht1.nodes.toArray()) | |
t.same(dht3.nodes.toArray().length, 2, 'has two nodes') | |
t.same(dht1.nodes.toArray().length, 2, 'have two nodes') | |
dht1._pingAll(function () { |
Author
robertkowalski
commented
Dec 2, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment