mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopdb: strongly typed constants
This commit is contained in:
parent
fc8f3c9986
commit
3e71ff0c81
2 changed files with 11 additions and 11 deletions
|
|
@ -529,7 +529,7 @@ func TestPreimagePush(t *testing.T) {
|
|||
cfg.store.(*storeMock).assertLoopOutState(loopdb.StatePreimageRevealed)
|
||||
status := <-statusChan
|
||||
require.Equal(
|
||||
t, status.State, loopdb.SwapState(loopdb.StatePreimageRevealed),
|
||||
t, status.State, loopdb.StatePreimageRevealed,
|
||||
)
|
||||
|
||||
// We expect the sweep tx to have been published.
|
||||
|
|
@ -578,7 +578,7 @@ func TestPreimagePush(t *testing.T) {
|
|||
cfg.store.(*storeMock).assertLoopOutState(loopdb.StateSuccess)
|
||||
status = <-statusChan
|
||||
require.Equal(
|
||||
t, status.State, loopdb.SwapState(loopdb.StateSuccess),
|
||||
t, status.State, loopdb.StateSuccess,
|
||||
)
|
||||
|
||||
require.NoError(t, <-errChan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue