@cryptotaxi247 / kubo / commits / 0dbd86c4f

connectedness test timing

Juan Batiz-Benet committed Dec 22, 2014 at 05:32 UTC 0dbd86c4f88687939dec5a76b120798687595325
1 file changed +5
net/net_test.go
+5
@@ -3,6 +3,7 @@ package net_test
3 import (
4 "fmt"
5 "testing"
6 + "time"
7
8 context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
9 inet "github.com/jbenet/go-ipfs/net"
@@ -33,6 +34,10 @@ func TestConnectednessCorrect(t *testing.T) {
34 dial(nets[1], nets[2])
35 dial(nets[3], nets[2])
36
37 + // there's something wrong with dial, i think. it's not finishing
38 + // completely. there must be some async stuff.
39 + <-time.After(100 * time.Millisecond)
40 +
41 // test those connected show up correctly
42
43 // test connected