Skip to content

Commit

Permalink
clock: fix tests in non-UTC timezones (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnxme authored Aug 7, 2024
1 parent 3524134 commit b79350a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/l4clock/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func Test_MatchClock_Match(t *testing.T) {
shouldMatch bool
}

tNowMinus5Minutes := time.Now().Add(time.Minute * 5 * (-1)).Format(time.TimeOnly)
tNowPlus5Minutes := time.Now().Add(time.Minute * 5).Format(time.TimeOnly)
tNowMinus5Minutes := time.Now().UTC().Add(time.Minute * 5 * (-1)).Format(time.TimeOnly)
tNowPlus5Minutes := time.Now().UTC().Add(time.Minute * 5).Format(time.TimeOnly)

tests := []test{
{matcher: &MatchClock{}, data: []byte{}, shouldMatch: true},
Expand Down

0 comments on commit b79350a

Please sign in to comment.