From 924813d57e06ca5bf6510c998a950f3118900fc7 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 15 Sep 2017 15:01:56 -0700 Subject: [PATCH] Test converting CheckRestart from api->structs --- command/agent/job_endpoint_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/command/agent/job_endpoint_test.go b/command/agent/job_endpoint_test.go index f7ad1d398..9cf62f5e6 100644 --- a/command/agent/job_endpoint_test.go +++ b/command/agent/job_endpoint_test.go @@ -1216,6 +1216,11 @@ func TestJobs_ApiJobToStructsJob(t *testing.T) { Interval: 4 * time.Second, Timeout: 2 * time.Second, InitialStatus: "ok", + CheckRestart: &api.CheckRestart{ + Limit: 3, + Grace: helper.TimeToPtr(10 * time.Second), + IgnoreWarnings: true, + }, }, }, }, @@ -1406,6 +1411,11 @@ func TestJobs_ApiJobToStructsJob(t *testing.T) { Interval: 4 * time.Second, Timeout: 2 * time.Second, InitialStatus: "ok", + CheckRestart: &structs.CheckRestart{ + Limit: 3, + Grace: 10 * time.Second, + IgnoreWarnings: true, + }, }, }, },