mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
nomad: fixing state store tests due to signature mismatch
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user