diff --git a/nomad/state/state_store_test.go b/nomad/state/state_store_test.go index dda6ae293..5f10d7173 100644 --- a/nomad/state/state_store_test.go +++ b/nomad/state/state_store_test.go @@ -572,6 +572,10 @@ func TestStateStore_JobsByPeriodic(t *testing.T) { } iter, err := state.JobsByPeriodic(true) + if err != nil { + t.Fatalf("err: %v", err) + } + var outPeriodic []*structs.Job for { raw := iter.Next() @@ -582,6 +586,7 @@ func TestStateStore_JobsByPeriodic(t *testing.T) { } iter, err = state.JobsByPeriodic(false) + var outNonPeriodic []*structs.Job for { raw := iter.Next()