nomad: fixing state store tests due to signature mismatch

This commit is contained in:
Armon Dadgar 2017-08-12 14:25:05 -07:00
parent 3702587667
commit cde8e9301b
1 changed files with 2 additions and 2 deletions

View File

@ -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++