Skip to content

Commit

Permalink
Prevent illegal logs in goroutines in hbone test (#39918)
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed Jul 13, 2022
1 parent 695ec3e commit d976274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/hbone/dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func newTCPServer(t testing.TB, data string) string {
for {
c, err := n.Accept()
if err != nil {
t.Log(err)
log.Info(err)
return
}
t.Log("accepted connection")
log.Info("accepted connection")
c.Write([]byte(data))
c.Close()
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func TestDialer(t *testing.T) {

go func() {
n, err := client.Write([]byte("hello world"))
t.Logf("wrote %v/%v", n, err)
log.Infof("wrote %v/%v", n, err)
}()

buf := make([]byte, 8)
Expand Down

0 comments on commit d976274

Please sign in to comment.