Skip to content

Commit

Permalink
correct TestStateStore_AllocsForRegisteredJob
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Jan 10, 2024
1 parent c3e2660 commit 62bbe3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/state/state_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7107,7 +7107,7 @@ func TestStateStore_AllocsForRegisteredJob(t *testing.T) {
t.Fatalf("err: %v", err)
}

expected := len(allocs) + len(allocs1)
expected := len(allocs1) // state.DeleteJob corresponds to stop -purge, so all allocs from the original job should be gone
if len(out) != expected {
t.Fatalf("expected: %v, actual: %v", expected, len(out))
}
Expand Down

0 comments on commit 62bbe3c

Please sign in to comment.