Skip to content

Commit

Permalink
Merge pull request #495 from Darkren/fix/testappaccept_hanging
Browse files Browse the repository at this point in the history
Fix hanging of `TestAppAccept`
  • Loading branch information
志宇 authored Jul 22, 2019
2 parents 96cb88e + e3984d6 commit f72b6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestAppAccept(t *testing.T) {
lpk, _ := cipher.GenerateKeyPair()
rpk, _ := cipher.GenerateKeyPair()
in, out := net.Pipe()
app := &App{proto: NewProtocol(in), acceptChan: make(chan [2]routing.Addr), conns: make(map[routing.Loop]io.ReadWriteCloser)}
app := &App{proto: NewProtocol(in), acceptChan: make(chan [2]routing.Addr, 2), conns: make(map[routing.Loop]io.ReadWriteCloser)}
go app.handleProto()

proto := NewProtocol(out)
Expand Down

0 comments on commit f72b6d6

Please sign in to comment.