mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: disable wireguard in portforward and gitssh tests (#2728)
This commit is contained in:
@ -58,7 +58,7 @@ func TestGitSSH(t *testing.T) {
|
|||||||
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
|
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
|
||||||
|
|
||||||
// start workspace agent
|
// start workspace agent
|
||||||
cmd, root := clitest.New(t, "agent", "--agent-token", agentToken, "--agent-url", client.URL.String())
|
cmd, root := clitest.New(t, "agent", "--agent-token", agentToken, "--agent-url", client.URL.String(), "--wireguard=false")
|
||||||
agentClient := client
|
agentClient := client
|
||||||
clitest.SetupConfig(t, agentClient, root)
|
clitest.SetupConfig(t, agentClient, root)
|
||||||
ctx, cancelFunc := context.WithCancel(context.Background())
|
ctx, cancelFunc := context.WithCancel(context.Background())
|
||||||
|
@ -402,7 +402,7 @@ func runAgent(t *testing.T, client *codersdk.Client, userID uuid.UUID) ([]coders
|
|||||||
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
|
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
|
||||||
|
|
||||||
// Start workspace agent in a goroutine
|
// Start workspace agent in a goroutine
|
||||||
cmd, root := clitest.New(t, "agent", "--agent-token", agentToken, "--agent-url", client.URL.String())
|
cmd, root := clitest.New(t, "agent", "--agent-token", agentToken, "--agent-url", client.URL.String(), "--wireguard=false")
|
||||||
clitest.SetupConfig(t, client, root)
|
clitest.SetupConfig(t, client, root)
|
||||||
errC := make(chan error)
|
errC := make(chan error)
|
||||||
agentCtx, agentCancel := context.WithCancel(ctx)
|
agentCtx, agentCancel := context.WithCancel(ctx)
|
||||||
|
Reference in New Issue
Block a user