Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde87444

Browse files
authored
test(cli/exptest): fix context in TestScaleTestWorkspaceTraffic_UseHostLogin (#16171)
1 parentcbe3004 commitde87444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cli/exptest/exptest_scaletest_test.go‎

Lines changed: 3 additions & 3 deletions
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
funcTestScaleTestWorkspaceTraffic_UseHostLogin(t*testing.T) {
23-
ctx,cancelFunc:=context.WithTimeout(context.Background(),testutil.WaitMedium)
24-
defercancelFunc()
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+
defercancel()
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)

[8]ページ先頭

©2009-2025 Movatter.jp