Skip to content

Commit

Permalink
Merge pull request openyurtio#269 from contrun/fix-goroutine-fatalf
Browse files Browse the repository at this point in the history
fix t.Fatalf from a non-test goroutine
  • Loading branch information
rambohe-ch authored Apr 20, 2021
2 parents 76ce727 + 2d92f7a commit 9aa0407
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 9aa0407

Please sign in to comment.