Skip to content

Commit

Permalink
accounts+refactor: improve test readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Jan 14, 2025
1 parent 04ca82e commit 15b65ee
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions accounts/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ func TestAccountService(t *testing.T) {

// Ensure that the service was eventually disabled.
assertEventually(t, func() bool {
isRunning := s.IsRunning()
return isRunning == false
return !s.IsRunning()
})
lnd.assertMainErrContains(t, ErrDBClosed.Error())
},
Expand Down Expand Up @@ -294,8 +293,7 @@ func TestAccountService(t *testing.T) {

// Ensure that the service was eventually disabled.
assertEventually(t, func() bool {
isRunning := s.IsRunning()
return isRunning == false
return !s.IsRunning()
})

lnd.assertMainErrContains(t, testErr.Error())
Expand Down Expand Up @@ -440,8 +438,7 @@ func TestAccountService(t *testing.T) {

// Ensure that the service was eventually disabled.
assertEventually(t, func() bool {
isRunning := s.IsRunning()
return isRunning == false
return !s.IsRunning()
})
lnd.assertMainErrContains(
t, "not mapped to any account",
Expand Down Expand Up @@ -483,8 +480,7 @@ func TestAccountService(t *testing.T) {

// Ensure that the service was eventually disabled.
assertEventually(t, func() bool {
isRunning := s.IsRunning()
return isRunning == false
return !s.IsRunning()
})

lnd.assertMainErrContains(t, testErr.Error())
Expand Down

0 comments on commit 15b65ee

Please # to comment.