Skip to content

Commit

Permalink
Merge pull request micro#3 from micro/master
Browse files Browse the repository at this point in the history
update fork
  • Loading branch information
xpunch authored Aug 11, 2019
2 parents 57dacf1 + e613b0c commit 94127ae
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tunnel/tunnel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ func testSend(t *testing.T, tun Tunnel) {
}

func TestTunnel(t *testing.T) {
// create a new listener
tun := NewTunnel(Nodes("127.0.0.1:9096"))
err := tun.Connect()
if err != nil {
t.Fatal(err)
}
defer tun.Close()

var wg sync.WaitGroup

// start accepting connections
wg.Add(1)
go testAccept(t, tun, &wg)

// send a message
testSend(t, tun)

// wait until message is received
wg.Wait()
}

func TestTwoTunnel(t *testing.T) {
// create a new tunnel client
tunA := NewTunnel(
Address("127.0.0.1:9096"),
Expand Down

0 comments on commit 94127ae

Please sign in to comment.