Skip to content

Commit

Permalink
fix t.Fatalf from a non-test goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun authored Apr 20, 2021
1 parent 4e64fe9 commit 154c21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurthub/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestDualReader(t *testing.T) {

go func() {
if n2, err := io.ReadFull(prc, dst2); err != nil || n2 != len(src) {
t.Fatalf("ReadFull(prc, dst2) = %d, %v; want %d, nil", n2, err, len(src))
t.Errorf("ReadFull(prc, dst2) = %d, %v; want %d, nil", n2, err, len(src))
}
}()

Expand Down

0 comments on commit 154c21a

Please sign in to comment.