mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix tests
This commit is contained in:
@@ -383,9 +383,9 @@ func TestPredict_Plugins(t *testing.T) {
|
|||||||
act := p.plugins()
|
act := p.plugins()
|
||||||
|
|
||||||
if !strutil.StrListContains(act, "kmip") {
|
if !strutil.StrListContains(act, "kmip") {
|
||||||
for i, v := range exp {
|
for i, v := range tc.exp {
|
||||||
if v == "kmip" {
|
if v == "kmip" {
|
||||||
exp = append(exp[:i], exp[i+1:]...)
|
tc.exp = append(tc.exp[:i], tc.exp[i+1:]...)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ func TestSealMigration(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
shamirSeal := vault.NewDefaultSeal(shamirseal.NewSeal(c.logger.Named("shamir")))
|
shamirSeal := vault.NewDefaultSeal(shamirseal.NewSeal(logger.Named("shamir")))
|
||||||
coreConfig := &vault.CoreConfig{
|
coreConfig := &vault.CoreConfig{
|
||||||
Seal: shamirSeal,
|
Seal: shamirSeal,
|
||||||
Physical: phys,
|
Physical: phys,
|
||||||
|
|||||||
Reference in New Issue
Block a user