From 9a9ea3331f090201c2d686ed7e726eb7d9cef926 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Tue, 2 Jan 2024 18:52:59 +0100 Subject: [PATCH] fix: Fix test because of the date (#2312) Fix the test that was using hardcoded date (that is now in the past). --- pkg/sdk/testint/resource_monitors_integration_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/sdk/testint/resource_monitors_integration_test.go b/pkg/sdk/testint/resource_monitors_integration_test.go index e383067a46..0a359dc9cc 100644 --- a/pkg/sdk/testint/resource_monitors_integration_test.go +++ b/pkg/sdk/testint/resource_monitors_integration_test.go @@ -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" @@ -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{ {