diff --git a/nomad/state/state_store_test.go b/nomad/state/state_store_test.go index 092ef1178..da01fd336 100644 --- a/nomad/state/state_store_test.go +++ b/nomad/state/state_store_test.go @@ -5694,7 +5694,7 @@ func TestStateStore_DeleteVaultAccessors(t *testing.T) { if err != nil { t.Fatalf("err: %v", err) } - if index != 1001 { + if index != 1000 { t.Fatalf("bad: %d", index) } @@ -5968,7 +5968,7 @@ func TestStateStore_ACLPolicyByNamePrefix(t *testing.T) { for _, name := range names { p := mock.ACLPolicy() p.Name = name - if err := state.UpsertACLPolicy(baseIndex, p); err != nil { + if err := state.UpsertACLPolicies(baseIndex, []*structs.ACLPolicy{p}); err != nil { t.Fatalf("err: %v", err) } baseIndex++