From d1e30badfadfd026c8846810193e41120d3a7a94 Mon Sep 17 00:00:00 2001 From: Victor Rodriguez Date: Mon, 27 May 2024 10:04:02 -0400 Subject: [PATCH] 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. --- .../consul_fencing_binary/consul_fencing_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vault/external_tests/consul_fencing_binary/consul_fencing_test.go b/vault/external_tests/consul_fencing_binary/consul_fencing_test.go index 0efaf7407a..6d7c0959d0 100644 --- a/vault/external_tests/consul_fencing_binary/consul_fencing_test.go +++ b/vault/external_tests/consul_fencing_binary/consul_fencing_test.go @@ -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)