From 09fb2515bdbcc25c6cde11edc997537093ebfb73 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Sat, 12 Aug 2017 14:25:05 -0700 Subject: [PATCH] nomad: fixing state store tests due to signature mismatch --- nomad/state/state_store_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++