From 8e49e05b4aba47a52450c639a075ac768a73b16f Mon Sep 17 00:00:00 2001 From: Suphanat Chunhapanya Date: Wed, 14 Aug 2024 22:55:13 +0700 Subject: [PATCH] fixup! Fix misc lint errors --- gossipsub_spam_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gossipsub_spam_test.go b/gossipsub_spam_test.go index 0a35e6c5..df2fffff 100644 --- a/gossipsub_spam_test.go +++ b/gossipsub_spam_test.go @@ -877,7 +877,8 @@ func TestGossipsubAttackSpamIDONTWANT(t *testing.T) { }) time.Sleep(100 * time.Millisecond) if err := psubs[0].Publish(topic, data); err != nil { - t.Fatal(err) + t.Error(err) + return // cannot call t.Fatal in a non-test goroutine } }() }