Skip to content

Commit

Permalink
accounts: assert no startup error in tests
Browse files Browse the repository at this point in the history
In the case where no startup error is expected, we should assert that no
error is returned from Start.
  • Loading branch information
ellemouton committed Jan 23, 2025
1 parent c87db3b commit 9e45401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accounts/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ func TestAccountService(t *testing.T) {

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

Expand Down Expand Up @@ -852,6 +853,8 @@ func TestAccountService(t *testing.T) {
}

return
} else {
require.NoError(t, err)
}

// Any post execution validation that we need to run?
Expand Down

0 comments on commit 9e45401

Please sign in to comment.