mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
store_test: Fix t.Fatal non-test goroutine lint error
This commit is contained in:
@@ -65,7 +65,7 @@ func TestMaxSize(t *testing.T) {
|
||||
go func(mailbox string) {
|
||||
err := s.PurgeMessages(mailbox)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
panic(err) // Cannot call t.Fatal from non-test goroutine.
|
||||
}
|
||||
wg.Done()
|
||||
}(mailbox)
|
||||
|
||||
Reference in New Issue
Block a user