Fix make check errors

This commit is contained in:
Alex Dadgar 2018-09-04 16:03:52 -07:00
parent 2c2a8322b5
commit c6576ddac1
9 changed files with 39 additions and 32 deletions

View File

@ -4193,7 +4193,14 @@ func Test_updateRescheduleTracker(t *testing.T) {
prevAllocEvents: nil,
reschedPolicy: &structs.ReschedulePolicy{Unlimited: false, Interval: 24 * time.Hour, Attempts: 2, Delay: 5 * time.Second},
reschedTime: t1,
expectedRescheduleEvents: []*structs.RescheduleEvent{{t1.UnixNano(), prevAlloc.ID, prevAlloc.NodeID, 5 * time.Second}},
expectedRescheduleEvents: []*structs.RescheduleEvent{
{
RescheduleTime: t1.UnixNano(),
PrevAllocID: prevAlloc.ID,
PrevNodeID: prevAlloc.NodeID,
Delay: 5 * time.Second,
},
},
},
{
desc: "one past event, linear delay",