diff --git a/command/base_predict_test.go b/command/base_predict_test.go index 7a773b9f67..99152bd27d 100644 --- a/command/base_predict_test.go +++ b/command/base_predict_test.go @@ -383,9 +383,9 @@ func TestPredict_Plugins(t *testing.T) { act := p.plugins() if !strutil.StrListContains(act, "kmip") { - for i, v := range exp { + for i, v := range tc.exp { if v == "kmip" { - exp = append(exp[:i], exp[i+1:]...) + tc.exp = append(tc.exp[:i], tc.exp[i+1:]...) break } } diff --git a/command/seal_migration_test.go b/command/seal_migration_test.go index f5a8adf66a..373b6dd7e7 100644 --- a/command/seal_migration_test.go +++ b/command/seal_migration_test.go @@ -29,7 +29,7 @@ func TestSealMigration(t *testing.T) { if err != nil { t.Fatal(err) } - shamirSeal := vault.NewDefaultSeal(shamirseal.NewSeal(c.logger.Named("shamir"))) + shamirSeal := vault.NewDefaultSeal(shamirseal.NewSeal(logger.Named("shamir"))) coreConfig := &vault.CoreConfig{ Seal: shamirSeal, Physical: phys,