aboutsummaryrefslogtreecommitdiff
path: root/stm_test.go
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2020-09-04 15:44:51 +1000
committerMatt Joiner <anacrolix@gmail.com>2020-09-10 09:22:35 +1000
commit2a64b89bdbc8fec645dd688bd0322f45c067f295 (patch)
tree6e1e7d5606d3a16a77ccdd47eb8654296862acf7 /stm_test.go
parentAdd exponentially longer sleeping between transaction attempts (diff)
downloadstm-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.go2
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.