From 154c21a587f468b9aa4ba5eab71181a723f2b796 Mon Sep 17 00:00:00 2001 From: contrun Date: Tue, 20 Apr 2021 09:17:02 +0000 Subject: [PATCH] fix t.Fatalf from a non-test goroutine --- pkg/yurthub/util/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yurthub/util/util_test.go b/pkg/yurthub/util/util_test.go index ea5480e9b91..0da45e382a9 100644 --- a/pkg/yurthub/util/util_test.go +++ b/pkg/yurthub/util/util_test.go @@ -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)) } }()