mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-14 12:43:03 +02:00
store: use correct vars for loop in assertions
This commit is contained in:
parent
fa1b86c691
commit
9f25fdd0bb
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue