mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: refactor cli and coderd to use ClientOptions (#19763)
Refactors CLI and coderd to use the ClientBuilder pattern rather than directly instantiating the Client.
This commit is contained in:
@@ -1467,8 +1467,7 @@ func TestUserActivityInsights_Golden(t *testing.T) {
|
||||
TokenName: "no-password-user-token",
|
||||
})
|
||||
require.NoError(t, err)
|
||||
userClient := codersdk.New(client.URL)
|
||||
userClient.SetSessionToken(token.Key)
|
||||
userClient := codersdk.New(client.URL, codersdk.WithSessionToken(token.Key))
|
||||
|
||||
coderUser, err := userClient.User(context.Background(), user.id.String())
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user