aboutsummaryrefslogtreecommitdiff
path: root/stm_test.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2020-10-02 17:33:20 +1000
committerMatt Joiner <anacrolix@gmail.com>2020-10-02 17:33:20 +1000
commit877bf18b7e26a4ee958fa4839c185c87fbcd7560 (patch)
tree264e499836cd8bf54736a7795a441c942d538b8a /stm_test.go
parentAdd benchmark utils (diff)
downloadstm-877bf18b7e26a4ee958fa4839c185c87fbcd7560.tar.gz
stm-877bf18b7e26a4ee958fa4839c185c87fbcd7560.tar.xz
Add retry profiling
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)