Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 6a2cc84

Browse files
committedAug 29, 2022
Remove unnecessary panic from concurrency test
1 parent f1ee911 commit 6a2cc84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎concurrent/concurrent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestConcurrency(t *testing.T) {
9797
for _, item := range testData {
9898
wantedIndex := item.expectedIndex
9999
if len(results) < wantedIndex {
100-
panic(fmt.Errorf("result does not have %d items", wantedIndex))
100+
t.Fatalf("result does not have %d items", wantedIndex)
101101
}
102102
if results[wantedIndex] == item.ID {
103103
t.Logf("ok - Item %-10s is at position %d in the results\n", item.ID, wantedIndex)

0 commit comments

Comments
 (0)
This repository has been archived.