From 5d986294ba000bd2741b5c04eb40e772e5df2e3a Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 27 Jul 2023 12:10:46 +0100 Subject: [PATCH] Fixup tests --- sync2/txnid_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sync2/txnid_test.go b/sync2/txnid_test.go index 844957c..f9b1599 100644 --- a/sync2/txnid_test.go +++ b/sync2/txnid_test.go @@ -67,9 +67,9 @@ func TestPendingTransactionIDs(t *testing.T) { // Delia is tracking four devices. allClear, err = pending.MissingTxnID("event4", "delia", "D1") assertNoError(t, err) - assertAllClear(t, allClear, false) // waiting on E2, E3 and E4 + assertAllClear(t, allClear, false) // waiting on D2, D3 and D4 - // One of Delia's devices, say D2, sees a txn ID for E4. + // One of Delia's devices, say D2, sees a txn ID for event 4. err = pending.SeenTxnID("event4") assertNoError(t, err) @@ -94,6 +94,7 @@ func TestPendingTransactionIDs(t *testing.T) { } func assertAllClear(t *testing.T, got bool, want bool) { + t.Helper() if got != want { t.Errorf("Expected allClear=%t, got %t", want, got) }