Skip to content

Commit 8e04dfc

Browse files
committed
squelch linter complaints in workspaceproxy_test.go
1 parent dc4546e commit 8e04dfc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

enterprise/cli/workspaceproxy_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func Test_ProxyCRUD(t *testing.T) {
5353

5454
pty := ptytest.New(t)
5555
inv.Stdout = pty.Output()
56-
clitest.SetupConfig(t, client, conf)
56+
clitest.SetupConfig(t, client, conf) //nolint:gocritic // create wsproxy requires owner
5757

5858
err := inv.WithContext(ctx).Run()
5959
require.NoError(t, err)
@@ -72,14 +72,14 @@ func Test_ProxyCRUD(t *testing.T) {
7272

7373
pty = ptytest.New(t)
7474
inv.Stdout = pty.Output()
75-
clitest.SetupConfig(t, client, conf)
75+
clitest.SetupConfig(t, client, conf) //nolint:gocritic // requires owner
7676

7777
err = inv.WithContext(ctx).Run()
7878
require.NoError(t, err)
7979
pty.ExpectMatch(expectedName)
8080

8181
// Also check via the api
82-
proxies, err := client.WorkspaceProxies(ctx)
82+
proxies, err := client.WorkspaceProxies(ctx) //nolint:gocritic // requires owner
8383
require.NoError(t, err, "failed to get workspace proxies")
8484
// Include primary
8585
require.Len(t, proxies.Regions, 2, "expected 1 proxy")
@@ -128,12 +128,12 @@ func Test_ProxyCRUD(t *testing.T) {
128128

129129
pty := ptytest.New(t)
130130
inv.Stdout = pty.Output()
131-
clitest.SetupConfig(t, client, conf)
131+
clitest.SetupConfig(t, client, conf) //nolint:gocritic // requires owner
132132

133133
err = inv.WithContext(ctx).Run()
134134
require.NoError(t, err)
135135

136-
proxies, err := client.WorkspaceProxies(ctx)
136+
proxies, err := client.WorkspaceProxies(ctx) //nolint:gocritic // requires owner
137137
require.NoError(t, err, "failed to get workspace proxies")
138138
require.Len(t, proxies.Regions, 1, "expected only primary proxy")
139139
})

0 commit comments

Comments
 (0)