From 9f25fdd0bb5f5bb952bd55a10b6baeb34239e840 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Mon, 30 Sep 2019 20:11:32 -0400 Subject: [PATCH] store: use correct vars for loop in assertions --- store_mock_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store_mock_test.go b/store_mock_test.go index 70c53dd..ea28dda 100644 --- a/store_mock_test.go +++ b/store_mock_test.go @@ -170,8 +170,8 @@ func (s *storeMock) UpdateLoopIn(hash lntypes.Hash, time time.Time, } updates = append(updates, state) - s.loopOutUpdates[hash] = updates - s.loopOutUpdateChan <- state + s.loopInUpdates[hash] = updates + s.loopInUpdateChan <- state return nil } @@ -214,9 +214,9 @@ func (s *storeMock) assertLoopInStored() { func (s *storeMock) assertLoopInState(expectedState loopdb.SwapState) { s.t.Helper() - state := <-s.loopOutUpdateChan + state := <-s.loopInUpdateChan if state.State != expectedState { - s.t.Fatalf("unexpected state") + s.t.Fatalf("expected state %v, got %v", expectedState, state) } }