loopdb: strongly typed constants

This commit is contained in:
Joost Jager 2020-06-23 12:35:22 +02:00
parent fc8f3c9986
commit 3e71ff0c81
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
2 changed files with 11 additions and 11 deletions

View file

@ -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)