We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e60d36 commit 757ddb9Copy full SHA for 757ddb9
threadsafe_test.go
@@ -652,14 +652,13 @@ func Test_DeadlockOnEachCallbackWhenPanic(t *testing.T) {
652
defer func() {
653
if r := recover(); r != nil {
654
panicOccured = true
655
- err = fmt.Errorf("failed to print IDs: panicked: %v", r)
+ err = fmt.Errorf("failed to do work: %v", r)
656
}
657
}()
658
659
s.Each(func(n *int) bool {
660
// NOTE: this will throw a panic once we get to the nil element.
661
- result := *n * 2
662
- fmt.Println("result is dereferenced doubled:", result)
+ _ = *n * 2
663
return false
664
})
665
0 commit comments