From 877bf18b7e26a4ee958fa4839c185c87fbcd7560 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 2 Oct 2020 17:33:20 +1000 Subject: Add retry profiling --- stm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm_test.go') 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) -- cgit v1.2.3