Skip to content

Commit

Permalink
test: use static value for time now in test (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 authored Jan 23, 2025
1 parent 84a3c8e commit 0992036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/skus/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func TestFilterActiveCreds(t *testing.T) {
ValidTo: time.Date(2026, time.January, 20, 0, 0, 0, 0, time.UTC),
},
},
now: time.Now(),
now: time.Date(2025, time.January, 20, 0, 0, 0, 0, time.UTC),
},
exp: tcExpected{
activeCreds: []TimeAwareSubIssuedCreds{
Expand All @@ -339,7 +339,7 @@ func TestFilterActiveCreds(t *testing.T) {
ValidTo: time.Date(2020, time.January, 20, 0, 0, 0, 0, time.UTC),
},
},
now: time.Now(),
now: time.Date(2021, time.January, 20, 0, 0, 0, 0, time.UTC),
},
exp: tcExpected{
activeCreds: []TimeAwareSubIssuedCreds{},
Expand All @@ -358,7 +358,7 @@ func TestFilterActiveCreds(t *testing.T) {
ValidTo: time.Date(2026, time.January, 20, 0, 0, 0, 0, time.UTC),
},
},
now: time.Now(),
now: time.Date(2025, time.January, 20, 0, 0, 0, 0, time.UTC),
},
exp: tcExpected{
activeCreds: []TimeAwareSubIssuedCreds{
Expand Down

0 comments on commit 0992036

Please sign in to comment.