diff --git a/Makefile b/Makefile index 7605267c..8dadddda 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ test/e2e: @if [ "$(GITHUB_ACTIONS)" != "true" ]; then \ export NOBL9_SDK_TEST_RUN_SEQUENTIAL_APPLY_AND_DELETE=true; \ fi; \ - go test -count=1 -race -test.v -run Test_Objects_V1_V1alpha_BudgetAdjustments -timeout=5m -tags=e2e_test ./tests + go test -count=1 -race -test.v -timeout=5m -tags=e2e_test ./tests ## Record tests and save them in ./bin/recorded-tests.json. test/record: diff --git a/tests/v1alpha_budgetadjustment_test.go b/tests/v1alpha_budgetadjustment_test.go index 489de4de..70031746 100644 --- a/tests/v1alpha_budgetadjustment_test.go +++ b/tests/v1alpha_budgetadjustment_test.go @@ -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.Second).UTC(), Duration: "1h", Filters: v1alphaBudgetAdjustment.Filters{ SLOs: []v1alphaBudgetAdjustment.SLORef{ @@ -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.Second).UTC(), Duration: "5h", Rrule: "FREQ=DAILY;COUNT=5", Filters: v1alphaBudgetAdjustment.Filters{