From a3e788d52494b75b927538c9c2bfee1573aa50e1 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 30 Sep 2020 19:13:27 +1000 Subject: Wake watchers until the var changes again --- stm_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stm_test.go') diff --git a/stm_test.go b/stm_test.go index 8526139..d6e4475 100644 --- a/stm_test.go +++ b/stm_test.go @@ -32,7 +32,7 @@ func TestDecrement(t *testing.T) { } } -// read-only transaction aren't exempt from calling tx.verify +// read-only transaction aren't exempt from calling tx.inputsChanged func TestReadVerify(t *testing.T) { read := make(chan struct{}) x, y := NewVar(1), NewVar(2) @@ -89,7 +89,7 @@ func TestRetry(t *testing.T) { } func TestVerify(t *testing.T) { - // tx.verify should check more than pointer equality + // tx.inputsChanged should check more than pointer equality type foo struct { i int } @@ -119,7 +119,7 @@ func TestVerify(t *testing.T) { <-read // wait for other tx to complete })) if i == 3 { - t.Fatal("verify did not retry despite modified Var", i) + t.Fatal("inputsChanged did not retry despite modified Var", i) } } -- cgit v1.2.3