Skip to content

Commit 9e45401

Browse files
committed
accounts: assert no startup error in tests
In the case where no startup error is expected, we should assert that no error is returned from Start.
1 parent c87db3b commit 9e45401

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

accounts/service_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ func TestAccountService(t *testing.T) {
372372

373373
return []AccountID{acct.ID}
374374
},
375+
startupErr: testErr.Error(),
375376
validate: func(t *testing.T, lnd *mockLnd, r *mockRouter,
376377
ids []AccountID, s *InterceptorService) {
377378

@@ -852,6 +853,8 @@ func TestAccountService(t *testing.T) {
852853
}
853854

854855
return
856+
} else {
857+
require.NoError(t, err)
855858
}
856859

857860
// Any post execution validation that we need to run?

0 commit comments

Comments
 (0)