Skip to content

Commit

Permalink
PC-13696 timestamp precision
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaceg committed Sep 24, 2024
1 parent a6f1b4d commit 6d7b9d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
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.Second).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.Second).UTC(),
Duration: "5h",
Rrule: "FREQ=DAILY;COUNT=5",
Filters: v1alphaBudgetAdjustment.Filters{
Expand Down

0 comments on commit 6d7b9d7

Please sign in to comment.