Skip to content

Commit 22ed6c4

Browse files
committed
address PR feedback
1 parent e6ed3c3 commit 22ed6c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/exp_scaletest.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ func (r *RootCmd) scaletestWorkspaceTraffic() *serpent.Command {
863863
tickInterval time.Duration
864864
bytesPerTick int64
865865
ssh bool
866-
useHostUser bool
866+
useHostLogin bool
867867
app string
868868
template string
869869
targetWorkspaces string
@@ -928,7 +928,7 @@ func (r *RootCmd) scaletestWorkspaceTraffic() *serpent.Command {
928928
}
929929

930930
var owner string
931-
if useHostUser {
931+
if useHostLogin {
932932
owner = codersdk.Me
933933
}
934934

@@ -1106,7 +1106,7 @@ func (r *RootCmd) scaletestWorkspaceTraffic() *serpent.Command {
11061106
Env: "CODER_SCALETEST_USE_HOST_LOGIN",
11071107
Default: "false",
11081108
Description: "Connect as the currently logged in user.",
1109-
Value: serpent.BoolOf(&useHostUser),
1109+
Value: serpent.BoolOf(&useHostLogin),
11101110
},
11111111
}
11121112

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
277277
}
278278
if err := options.Authorizer.Authorize(context.Background(), ownerSubj, policy.ActionSSH, rbac.ResourceWorkspace); err != nil {
279279
if rbac.IsUnauthorizedError(err) {
280-
t.Fatal("DisableOwnerWorkspaceExec was set in some other test. Please move this test to its own package so that it does not impact other tests!")
280+
t.Fatal("Side-effect of DisableOwnerWorkspaceExec detected in unrelated test. Please move the test that requires DisableOwnerWorkspaceExec to its own package so that it does not impact other tests!")
281281
}
282282
require.NoError(t, err)
283283
}

0 commit comments

Comments
 (0)