From e00316fab844044e836151e4f9444a1a8e7b99f7 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 9 Oct 2023 14:29:50 -0300 Subject: [PATCH] Restores 30s max timeout 15s seems not enough in some cases to ensure pro attaches. --- end-to-end/manual_token_input_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/end-to-end/manual_token_input_test.go b/end-to-end/manual_token_input_test.go index 120a49865..2a726391f 100644 --- a/end-to-end/manual_token_input_test.go +++ b/end-to-end/manual_token_input_test.go @@ -67,7 +67,8 @@ func TestManualTokenInput(t *testing.T) { require.NoErrorf(t, err, "Setup: could not wake distro up: %v. %s", err, out) } - maxTimeout := 15 * time.Second + const maxTimeout = 30 * time.Second + if !tc.wantAttached { time.Sleep(maxTimeout) proCtx, cancel := context.WithTimeout(ctx, 5*time.Second)