mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
misc: refactor loop tests to use require where possible
This commit is contained in:
parent
bdb4b773ed
commit
049b17ff96
10 changed files with 100 additions and 193 deletions
|
|
@ -63,10 +63,7 @@ func newLoopInTestContext(t *testing.T) *loopInTestContext {
|
|||
|
||||
func (c *loopInTestContext) assertState(expectedState loopdb.SwapState) {
|
||||
state := <-c.statusChan
|
||||
if state.State != expectedState {
|
||||
c.t.Fatalf("expected state %v but got %v", expectedState,
|
||||
state.State)
|
||||
}
|
||||
require.Equal(c.t, expectedState, state.State)
|
||||
}
|
||||
|
||||
// assertSubscribeInvoice asserts that the client subscribes to invoice updates
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue