Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRoesler committed Oct 30, 2023
1 parent 9e0590c commit 894ff75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestScheduler_Every(t *testing.T) {
// do nothing
})

require.EqualError(t, err, ErrInvalidInterval.Error())
require.ErrorIs(t, err, ErrInvalidInterval)
})

t.Run("int", func(t *testing.T) {
Expand Down Expand Up @@ -203,7 +203,7 @@ func TestScheduler_Every(t *testing.T) {
// do nothing
})

require.EqualError(t, err, ErrInvalidInterval.Error())
require.ErrorIs(t, err, ErrInvalidInterval)
})
}

Expand Down

0 comments on commit 894ff75

Please sign in to comment.