From 99f914ae6fa59cc67c421aa82abb79eaab03ebb1 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 20 Jun 2019 21:00:01 -0400 Subject: [PATCH] Fix tests --- command/base_predict_test.go | 4 ++-- command/seal_migration_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,