Skip to content

Commit

Permalink
Update nomad/leader_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
  • Loading branch information
Juanadelacuesta and jrasell committed Mar 27, 2023
1 parent 2a9a785 commit f841f4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nomad/leader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,7 @@ func TestLeader_PeriodicDispatcher_No_Overlaps_Running_Job(t *testing.T) {
ID: job.ID,
Namespace: job.Namespace,
}
if _, tracked := s1.periodicDispatcher.tracked[tuple]; !tracked {
t.Fatalf("periodic job not restored")
}
must.MapContainsKey(t, s1.periodicDispatcher.tracked, tuple, must.Sprint("periodic job not restored"))

if md.forceEvalCalled != false {
t.Fatalf("evaluation forced with job already running")
Expand Down

0 comments on commit f841f4f

Please sign in to comment.