Skip to content

Commit 9f25fdd

Browse files
committed
store: use correct vars for loop in assertions
1 parent fa1b86c commit 9f25fdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

store_mock_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ func (s *storeMock) UpdateLoopIn(hash lntypes.Hash, time time.Time,
170170
}
171171

172172
updates = append(updates, state)
173-
s.loopOutUpdates[hash] = updates
174-
s.loopOutUpdateChan <- state
173+
s.loopInUpdates[hash] = updates
174+
s.loopInUpdateChan <- state
175175

176176
return nil
177177
}
@@ -214,9 +214,9 @@ func (s *storeMock) assertLoopInStored() {
214214
func (s *storeMock) assertLoopInState(expectedState loopdb.SwapState) {
215215
s.t.Helper()
216216

217-
state := <-s.loopOutUpdateChan
217+
state := <-s.loopInUpdateChan
218218
if state.State != expectedState {
219-
s.t.Fatalf("unexpected state")
219+
s.t.Fatalf("expected state %v, got %v", expectedState, state)
220220
}
221221
}
222222

0 commit comments

Comments
 (0)