Fix unit test

This commit is contained in:
Preetha Appan 2018-01-18 15:27:34 -06:00
parent 1f834d1a31
commit 4a78c5bc84
No known key found for this signature in database
GPG key ID: 9F7C19990A50EAFC

View file

@ -1171,6 +1171,10 @@ func TestJobs_ApiJobToStructsJob(t *testing.T) {
Delay: helper.TimeToPtr(10 * time.Second),
Mode: helper.StringToPtr("delay"),
},
ReschedulePolicy: &api.ReschedulePolicy{
Interval: helper.TimeToPtr(12 * time.Hour),
Attempts: helper.IntToPtr(5),
},
EphemeralDisk: &api.EphemeralDisk{
SizeMB: helper.IntToPtr(100),
Sticky: helper.BoolToPtr(true),
@ -1379,6 +1383,10 @@ func TestJobs_ApiJobToStructsJob(t *testing.T) {
Delay: 10 * time.Second,
Mode: "delay",
},
ReschedulePolicy: &structs.ReschedulePolicy{
Interval: 12 * time.Hour,
Attempts: 5,
},
EphemeralDisk: &structs.EphemeralDisk{
SizeMB: 100,
Sticky: true,