Skip to content

Commit 662a0bd

Browse files
Change type of value field to int64 (#3215)
1 parent 00538fc commit 662a0bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jobs/resource_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type GitSource struct {
158158
type JobHealthRule struct {
159159
Metric string `json:"metric,omitempty"`
160160
Operation string `json:"op,omitempty"`
161-
Value int32 `json:"value,omitempty"`
161+
Value int64 `json:"value,omitempty"`
162162
}
163163

164164
type JobHealth struct {

jobs/resource_job_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) {
171171
{
172172
Metric: "RUN_DURATION_SECONDS",
173173
Operation: "GREATER_THAN",
174-
Value: 3600,
174+
Value: 50000000000, // 5 * 10^10
175175
},
176176
},
177177
},
@@ -260,7 +260,7 @@ func TestResourceJobCreate_MultiTask(t *testing.T) {
260260
rules {
261261
metric = "RUN_DURATION_SECONDS"
262262
op = "GREATER_THAN"
263-
value = 3600
263+
value = 50000000000
264264
}
265265
}
266266

0 commit comments

Comments
 (0)