diff --git a/scheduler/spread_test.go b/scheduler/spread_test.go index 75de56699..bf9059ecb 100644 --- a/scheduler/spread_test.go +++ b/scheduler/spread_test.go @@ -880,6 +880,7 @@ func TestSpreadPanicDowngrade(t *testing.T) { allocs = append(allocs, alloc) } err = h.State.UpsertAllocs(structs.MsgTypeTestSetup, h.NextIndex(), allocs) + require.NoError(t, err) // job version 2 // max_parallel = 0, canary = 1, spread == nil