mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
chore: fix lengthy tests in psql (#7545)
* chore: fix lengthy tests in psql This was adding at a minimum 3mins to our psql tests! * fix: automatically cancel tests on cleanup
This commit is contained in:
@ -58,9 +58,9 @@ func prepareTestGitSSH(ctx context.Context, t *testing.T) (*codersdk.Client, str
|
||||
|
||||
// start workspace agent
|
||||
inv, root := clitest.New(t, "agent", "--agent-token", agentToken, "--agent-url", client.URL.String())
|
||||
agentClient := client
|
||||
agentClient := codersdk.New(client.URL)
|
||||
agentClient.SetSessionToken(agentToken)
|
||||
clitest.SetupConfig(t, agentClient, root)
|
||||
|
||||
clitest.Start(t, inv)
|
||||
|
||||
coderdtest.AwaitWorkspaceAgents(t, client, workspace.ID)
|
||||
|
Reference in New Issue
Block a user