mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Increment timeout of TestConsulFencing_PartitionedLeaderCantWrite. (#27237)
Change the total timeout for the test from 5 to 15 minutes. Use a corehelters.TestLogger so that the output of the test gets saved on a file on failures.
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
||||
"github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/vault/api"
|
||||
"github.com/hashicorp/vault/helper/testhelpers/consul"
|
||||
"github.com/hashicorp/vault/helper/testhelpers/corehelpers"
|
||||
"github.com/hashicorp/vault/sdk/helper/testcluster"
|
||||
"github.com/hashicorp/vault/sdk/helper/testcluster/docker"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -28,13 +29,13 @@ import (
|
||||
// (and Consul lock improvements) and should _never_ fail now we correctly fence
|
||||
// writes.
|
||||
func TestConsulFencing_PartitionedLeaderCantWrite(t *testing.T) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
|
||||
defer cancel()
|
||||
|
||||
consulStorage := consul.NewClusterStorage()
|
||||
|
||||
// Create cluster logger that will dump cluster logs to stdout for debugging.
|
||||
logger := hclog.NewInterceptLogger(hclog.DefaultOptions)
|
||||
logger := corehelpers.NewTestLogger(t)
|
||||
logger.SetLevel(hclog.Trace)
|
||||
|
||||
clusterOpts := docker.DefaultOptions(t)
|
||||
|
||||
Reference in New Issue
Block a user