From 662a0bd08043be9f36fca43978ab8a81f60c91d5 Mon Sep 17 00:00:00 2001 From: Akshat Goyal Date: Mon, 5 Feb 2024 16:37:38 +0100 Subject: [PATCH] Change type of value field to int64 (#3215) --- jobs/resource_job.go | 2 +- jobs/resource_job_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/resource_job.go b/jobs/resource_job.go index 128576cf86..c46bd9689c 100644 --- a/jobs/resource_job.go +++ b/jobs/resource_job.go @@ -158,7 +158,7 @@ type GitSource struct { type JobHealthRule struct { Metric string `json:"metric,omitempty"` Operation string `json:"op,omitempty"` - Value int32 `json:"value,omitempty"` + Value int64 `json:"value,omitempty"` } type JobHealth struct { diff --git a/jobs/resource_job_test.go b/jobs/resource_job_test.go index 453389971b..3219275624 100644 --- a/jobs/resource_job_test.go +++ b/jobs/resource_job_test.go @@ -171,7 +171,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) { { Metric: "RUN_DURATION_SECONDS", Operation: "GREATER_THAN", - Value: 3600, + Value: 50000000000, // 5 * 10^10 }, }, }, @@ -260,7 +260,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) { rules { metric = "RUN_DURATION_SECONDS" op = "GREATER_THAN" - value = 3600 + value = 50000000000 } }