From 62bbe3c2939efce7adb8dadfebd491d3d32f2be2 Mon Sep 17 00:00:00 2001 From: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:16:10 +0100 Subject: [PATCH] correct TestStateStore_AllocsForRegisteredJob --- nomad/state/state_store_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/state/state_store_test.go b/nomad/state/state_store_test.go index e8ac8a38167..44fafa0d466 100644 --- a/nomad/state/state_store_test.go +++ b/nomad/state/state_store_test.go @@ -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)) }