Skip to content

Commit

Permalink
fix: Fix test because of the date (#2312)
Browse files Browse the repository at this point in the history
Fix the test that was using hardcoded date (that is now in the past).
  • Loading branch information
sfc-gh-asawicki authored Jan 2, 2024
1 parent be01d5f commit 9a9ea33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sdk/testint/resource_monitors_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package testint

import (
"testing"
"time"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/internal/random"
Expand Down Expand Up @@ -51,7 +52,7 @@ func TestInt_ResourceMonitorCreate(t *testing.T) {
require.NoError(t, err)
startTimeStamp := "IMMEDIATELY"
creditQuota := 100
endTimeStamp := "2024-01-01 12:34"
endTimeStamp := time.Now().Add(24 * 10 * time.Hour).Format("2006-01-02 15:04")

triggers := []sdk.TriggerDefinition{
{
Expand Down

0 comments on commit 9a9ea33

Please sign in to comment.