From 3c319fc41872cbd70aa352d83ea61ed0e0f73682 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 26 Feb 2025 20:54:38 +0000 Subject: [PATCH] chore(cli): fix test flake caused by agent connect race --- cli/exp_rpty_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/exp_rpty_test.go b/cli/exp_rpty_test.go index 2f0a24bf1cf41..782a7b5c08d48 100644 --- a/cli/exp_rpty_test.go +++ b/cli/exp_rpty_test.go @@ -87,6 +87,11 @@ func TestExpRpty(t *testing.T) { require.NoError(t, err, "Could not stop container") }) + _ = agenttest.New(t, client.URL, agentToken, func(o *agent.Options) { + o.ExperimentalContainersEnabled = true + }) + _ = coderdtest.NewWorkspaceAgentWaiter(t, client, workspace.ID).Wait() + inv, root := clitest.New(t, "exp", "rpty", workspace.Name, "-c", ct.Container.ID) clitest.SetupConfig(t, client, root) pty := ptytest.New(t).Attach(inv) @@ -96,11 +101,6 @@ func TestExpRpty(t *testing.T) { assert.NoError(t, err) }) - _ = agenttest.New(t, client.URL, agentToken, func(o *agent.Options) { - o.ExperimentalContainersEnabled = true - }) - _ = coderdtest.NewWorkspaceAgentWaiter(t, client, workspace.ID).Wait() - pty.ExpectMatch(fmt.Sprintf("Connected to %s", workspace.Name)) pty.ExpectMatch("Reconnect ID: ") pty.ExpectMatch(" #") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy