diff options
author | Matt Joiner <anacrolix@gmail.com> | 2020-09-04 15:44:51 +1000 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2020-09-10 09:22:35 +1000 |
commit | 2a64b89bdbc8fec645dd688bd0322f45c067f295 (patch) | |
tree | 6e1e7d5606d3a16a77ccdd47eb8654296862acf7 /stm_test.go | |
parent | Add exponentially longer sleeping between transaction attempts (diff) | |
download | stm-2a64b89bdbc8fec645dd688bd0322f45c067f295.tar.gz stm-2a64b89bdbc8fec645dd688bd0322f45c067f295.tar.xz |
Add custom VarValue and const for sleep backoff
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 519415a..8526139 100644 --- a/stm_test.go +++ b/stm_test.go @@ -205,7 +205,7 @@ func TestAtomicSetRetry(t *testing.T) { } func testPingPong(t testing.TB, n int, afterHit func(string)) { - ball := NewVar(false) + ball := NewBuiltinEqVar(false) doneVar := NewVar(false) hits := NewVar(0) ready := NewVar(true) // The ball is ready for hitting. |