1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

store_test: Fix t.Fatal non-test goroutine lint error

This commit is contained in:
James Hillyerd
2021-05-06 09:46:56 -07:00
parent 4bd64563f2
commit 81edf40996

View File

@@ -65,7 +65,7 @@ func TestMaxSize(t *testing.T) {
go func(mailbox string) { go func(mailbox string) {
err := s.PurgeMessages(mailbox) err := s.PurgeMessages(mailbox)
if err != nil { if err != nil {
t.Fatal(err) panic(err) // Cannot call t.Fatal from non-test goroutine.
} }
wg.Done() wg.Done()
}(mailbox) }(mailbox)