Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de87444

Browse files
authored
test(cli/exptest): fix context in TestScaleTestWorkspaceTraffic_UseHostLogin (#16171)
1 parent cbe3004 commit de87444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/exptest/exptest_scaletest_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import (
2020
// can influence other tests in the same package.
2121
// nolint:paralleltest
2222
func TestScaleTestWorkspaceTraffic_UseHostLogin(t *testing.T) {
23-
ctx, cancelFunc := context.WithTimeout(context.Background(), testutil.WaitMedium)
24-
defer cancelFunc()
25-
2623
log := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true})
2724
client := coderdtest.New(t, &coderdtest.Options{
2825
Logger: &log,
@@ -41,6 +38,9 @@ func TestScaleTestWorkspaceTraffic_UseHostLogin(t *testing.T) {
4138
cwr.Name = "scaletest-workspace"
4239
})
4340

41+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
42+
defer cancel()
43+
4444
// Test without --use-host-login first.g
4545
inv, root := clitest.New(t, "exp", "scaletest", "workspace-traffic",
4646
"--template", tpl.Name,

0 commit comments

Comments
 (0)