diff options
author | Valery Piashchynski <[email protected]> | 2021-07-14 14:55:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-14 14:55:24 +0300 |
commit | cd07985494b3ebb03fd6553bed9aa1393052ffc5 (patch) | |
tree | ea2c89de3fb7765af84ff9dac7c83881bc8869d2 /plugins/jobs/job | |
parent | d099e47ab28dd044d34e18347a4c714b8af3d612 (diff) |
Implement Pause/Resume/Stop
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/job')
-rw-r--r-- | plugins/jobs/job/job_options_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/jobs/job/job_options_test.go b/plugins/jobs/job/job_options_test.go index 500d8006..f4b1dc0c 100644 --- a/plugins/jobs/job/job_options_test.go +++ b/plugins/jobs/job/job_options_test.go @@ -79,10 +79,10 @@ func TestOptions_Merge(t *testing.T) { }) assert.Equal(t, "pipeline", opts.Pipeline) - assert.Equal(t, uint64(1), opts.Attempts) - assert.Equal(t, uint64(2), opts.Delay) - assert.Equal(t, uint64(1), opts.Timeout) - assert.Equal(t, uint64(1), opts.RetryDelay) + assert.Equal(t, int64(1), opts.Attempts) + assert.Equal(t, int64(2), opts.Delay) + assert.Equal(t, int64(1), opts.Timeout) + assert.Equal(t, int64(1), opts.RetryDelay) } func TestOptions_MergeKeepOriginal(t *testing.T) { @@ -103,8 +103,8 @@ func TestOptions_MergeKeepOriginal(t *testing.T) { }) assert.Equal(t, "default", opts.Pipeline) - assert.Equal(t, uint64(10), opts.Attempts) - assert.Equal(t, uint64(10), opts.Delay) - assert.Equal(t, uint64(10), opts.Timeout) - assert.Equal(t, uint64(10), opts.RetryDelay) + assert.Equal(t, int64(10), opts.Attempts) + assert.Equal(t, int64(10), opts.Delay) + assert.Equal(t, int64(10), opts.Timeout) + assert.Equal(t, int64(10), opts.RetryDelay) } |