Skip to content

Commit

Permalink
fix: PC-13696 timestamp precision (#555)
Browse files Browse the repository at this point in the history
## Motivation

Fix broken BudgetAdjustment e2e tests
https://github.com/nobl9/nobl9-go/actions/runs/11010712614/job/30574789172

---------

Co-authored-by: kubaceg <[email protected]>
  • Loading branch information
kubaceg and kubaceg authored Sep 24, 2024
1 parent 5969b3b commit c28f216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/v1alpha_budgetadjustment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Test_Objects_V1_V1alpha_BudgetAdjustments(t *testing.T) {
},
v1alphaBudgetAdjustment.Spec{
Description: objectDescription,
FirstEventStart: time.Now().Add(time.Hour).UTC(),
FirstEventStart: time.Now().Add(time.Hour).Truncate(time.Millisecond).UTC(),
Duration: "1h",
Filters: v1alphaBudgetAdjustment.Filters{
SLOs: []v1alphaBudgetAdjustment.SLORef{
Expand All @@ -51,7 +51,7 @@ func Test_Objects_V1_V1alpha_BudgetAdjustments(t *testing.T) {
},
v1alphaBudgetAdjustment.Spec{
Description: objectDescription,
FirstEventStart: time.Now().Add(time.Hour).UTC(),
FirstEventStart: time.Now().Add(time.Hour).Truncate(time.Millisecond).UTC(),
Duration: "5h",
Rrule: "FREQ=DAILY;COUNT=5",
Filters: v1alphaBudgetAdjustment.Filters{
Expand Down

0 comments on commit c28f216

Please sign in to comment.