Skip to content

Commit

Permalink
Review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Feb 5, 2020
1 parent c9d4025 commit 06b53eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions command/seal_migration_oss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/hashicorp/vault/vault/seal"
)

func TestSealMigrationAutoToShamir(t *testing.T) {
func TestSealMigration_AutoToShamir(t *testing.T) {
t.Parallel()
t.Run("inmem", func(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -60,7 +60,6 @@ func testSealMigrationAutoToShamir(t *testing.T, setup teststorage.ClusterSetupM
},
setup,
)
opts.SetupFunc = nil
cluster := vault.NewTestCluster(t, conf, opts)
cluster.Start()
defer cluster.Cleanup()
Expand Down
4 changes: 2 additions & 2 deletions command/seal_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func verifyBarrierConfig(t *testing.T, cfg *vault.SealConfig, sealType string, s
}
}

func TestSealMigrationShamirToAuto(t *testing.T) {
func TestSealMigration_ShamirToAuto(t *testing.T) {
t.Parallel()
t.Run("inmem", func(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -236,7 +236,7 @@ func testSealMigrationShamirToAuto(t *testing.T, setup teststorage.ClusterSetupM
verifyBarrierConfig(t, r, wrapping.Shamir, 5, 3, 0)
}

func TestSealMigrationAutoToAuto(t *testing.T) {
func TestSealMigration_AutoToAuto(t *testing.T) {
t.Parallel()
t.Run("inmem", func(t *testing.T) {
t.Parallel()
Expand Down
6 changes: 4 additions & 2 deletions helper/testhelpers/teststorage/teststorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ func RaftBackendSetup(conf *vault.CoreConfig, opts *vault.TestClusterOptions) {
opts.KeepStandbysSealed = true
opts.PhysicalFactory = MakeRaftBackend
opts.SetupFunc = func(t testing.T, c *vault.TestCluster) {
testhelpers.RaftClusterJoinNodes(t, c)
time.Sleep(15 * time.Second)
if opts.NumCores > 1 {
testhelpers.RaftClusterJoinNodes(t, c)
time.Sleep(15 * time.Second)
}
}
}

Expand Down

0 comments on commit 06b53eb

Please sign in to comment.