mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: refactor workspace count to single route (#4809)
Co-authored-by: Presley Pizzo <presley@coder.com>
This commit is contained in:
@ -629,11 +629,11 @@ func TestWorkspaceAppsProxySubdomain(t *testing.T) {
|
||||
me, err := client.User(ctx, codersdk.Me)
|
||||
require.NoError(t, err, "get current user details")
|
||||
|
||||
workspaces, err := client.Workspaces(ctx, codersdk.WorkspaceFilter{
|
||||
res, err := client.Workspaces(ctx, codersdk.WorkspaceFilter{
|
||||
Owner: codersdk.Me,
|
||||
})
|
||||
require.NoError(t, err, "get workspaces")
|
||||
require.Len(t, workspaces, 1, "expected 1 workspace")
|
||||
require.Len(t, res.Workspaces, 1, "expected 1 workspace")
|
||||
|
||||
appHost, err := client.GetAppHost(ctx)
|
||||
require.NoError(t, err, "get app host")
|
||||
@ -642,7 +642,7 @@ func TestWorkspaceAppsProxySubdomain(t *testing.T) {
|
||||
AppSlug: appName,
|
||||
Port: port,
|
||||
AgentName: proxyTestAgentName,
|
||||
WorkspaceName: workspaces[0].Name,
|
||||
WorkspaceName: res.Workspaces[0].Name,
|
||||
Username: me.Username,
|
||||
}.String()
|
||||
|
||||
|
Reference in New Issue
Block a user