aboutsummaryrefslogtreecommitdiff
path: root/stm_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'stm_test.go')
-rw-r--r--stm_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm_test.go b/stm_test.go
index d6e4475..5c0ae31 100644
--- a/stm_test.go
+++ b/stm_test.go
@@ -223,7 +223,7 @@ func testPingPong(t testing.TB, n int, afterHit func(string)) {
tx.Set(ready, false)
return false
}
- panic(Retry)
+ return tx.Retry()
}).(bool) {
afterHit(noise)
AtomicSet(ready, true)