Skip to content

Commit c689934

Browse files
committed
fixup test
1 parent 463bd46 commit c689934

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cli/exp_rpty_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/ory/dockertest/v3"
88
"github.com/ory/dockertest/v3/docker"
99

10+
"github.com/coder/coder/v2/agent"
1011
"github.com/coder/coder/v2/agent/agenttest"
1112
"github.com/coder/coder/v2/cli/clitest"
1213
"github.com/coder/coder/v2/coderd/coderdtest"
@@ -59,9 +60,7 @@ func TestExpRpty(t *testing.T) {
5960
t.Parallel()
6061

6162
client, workspace, agentToken := setupWorkspaceForAgent(t)
62-
6363
ctx := testutil.Context(t, testutil.WaitLong)
64-
6564
pool, err := dockertest.NewPool("")
6665
require.NoError(t, err, "Could not connect to docker")
6766
ct, err := pool.RunWithOptions(&dockertest.RunOptions{
@@ -92,11 +91,13 @@ func TestExpRpty(t *testing.T) {
9291
assert.NoError(t, err)
9392
})
9493

95-
_ = agenttest.New(t, client.URL, agentToken)
94+
_ = agenttest.New(t, client.URL, agentToken, func(o *agent.Options) {
95+
o.ExperimentalContainersEnabled = true
96+
})
9697
_ = coderdtest.NewWorkspaceAgentWaiter(t, client, workspace.ID).Wait()
9798

9899
pty.ExpectMatch(fmt.Sprintf("Connected to %s", workspace.Name))
99-
pty.ExpectMatch("/ #")
100+
pty.ExpectMatch(" #")
100101
pty.WriteLine("hostname")
101102
pty.ExpectMatch(ct.Container.Config.Hostname)
102103
pty.WriteLine("exit")

0 commit comments

Comments
 (0)
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