@@ -53,7 +53,7 @@ func Test_ProxyCRUD(t *testing.T) {
53
53
54
54
pty := ptytest .New (t )
55
55
inv .Stdout = pty .Output ()
56
- clitest .SetupConfig (t , client , conf )
56
+ clitest .SetupConfig (t , client , conf ) //nolint:gocritic // create wsproxy requires owner
57
57
58
58
err := inv .WithContext (ctx ).Run ()
59
59
require .NoError (t , err )
@@ -72,14 +72,14 @@ func Test_ProxyCRUD(t *testing.T) {
72
72
73
73
pty = ptytest .New (t )
74
74
inv .Stdout = pty .Output ()
75
- clitest .SetupConfig (t , client , conf )
75
+ clitest .SetupConfig (t , client , conf ) //nolint:gocritic // requires owner
76
76
77
77
err = inv .WithContext (ctx ).Run ()
78
78
require .NoError (t , err )
79
79
pty .ExpectMatch (expectedName )
80
80
81
81
// Also check via the api
82
- proxies , err := client .WorkspaceProxies (ctx )
82
+ proxies , err := client .WorkspaceProxies (ctx ) //nolint:gocritic // requires owner
83
83
require .NoError (t , err , "failed to get workspace proxies" )
84
84
// Include primary
85
85
require .Len (t , proxies .Regions , 2 , "expected 1 proxy" )
@@ -128,12 +128,12 @@ func Test_ProxyCRUD(t *testing.T) {
128
128
129
129
pty := ptytest .New (t )
130
130
inv .Stdout = pty .Output ()
131
- clitest .SetupConfig (t , client , conf )
131
+ clitest .SetupConfig (t , client , conf ) //nolint:gocritic // requires owner
132
132
133
133
err = inv .WithContext (ctx ).Run ()
134
134
require .NoError (t , err )
135
135
136
- proxies , err := client .WorkspaceProxies (ctx )
136
+ proxies , err := client .WorkspaceProxies (ctx ) //nolint:gocritic // requires owner
137
137
require .NoError (t , err , "failed to get workspace proxies" )
138
138
require .Len (t , proxies .Regions , 1 , "expected only primary proxy" )
139
139
})
0 commit comments