diff options
author | Matt Joiner <anacrolix@gmail.com> | 2020-10-02 17:33:20 +1000 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2020-10-02 17:33:20 +1000 |
commit | 877bf18b7e26a4ee958fa4839c185c87fbcd7560 (patch) | |
tree | 264e499836cd8bf54736a7795a441c942d538b8a /stm_test.go | |
parent | Add benchmark utils (diff) | |
download | stm-877bf18b7e26a4ee958fa4839c185c87fbcd7560.tar.gz stm-877bf18b7e26a4ee958fa4839c185c87fbcd7560.tar.xz |
Add retry profiling
Diffstat (limited to 'stm_test.go')
-rw-r--r-- | stm_test.go | 2 |
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) |