@@ -577,7 +577,7 @@ func Run(t *testing.T, factory DeploymentFactory) {
577
577
578
578
host := strings .Replace (appDetails .Options .AppHost , "*" , "not-an-app-subdomain" , 1 )
579
579
uri := fmt .Sprintf ("http://%s/api/v2/users/me" , host )
580
- resp , err := requestWithRetries (ctx , t , appDetails .Client , http .MethodGet , uri , nil )
580
+ resp , err := requestWithRetries (ctx , t , appDetails .AppClient ( t ) , http .MethodGet , uri , nil )
581
581
require .NoError (t , err )
582
582
defer resp .Body .Close ()
583
583
@@ -654,7 +654,7 @@ func Run(t *testing.T, factory DeploymentFactory) {
654
654
defer cancel ()
655
655
656
656
u := appDetails .SubdomainAppURL (appDetails .OwnerApp )
657
- resp , err := requestWithRetries (ctx , t , appDetails .Client , http .MethodGet , u .String (), nil )
657
+ resp , err := requestWithRetries (ctx , t , appDetails .AppClient ( t ) , http .MethodGet , u .String (), nil )
658
658
require .NoError (t , err )
659
659
defer resp .Body .Close ()
660
660
body , err := io .ReadAll (resp .Body )
@@ -723,7 +723,7 @@ func Run(t *testing.T, factory DeploymentFactory) {
723
723
724
724
app := appDetails .PortApp
725
725
app .AppSlugOrPort = strconv .Itoa (codersdk .WorkspaceAgentMinimumListeningPort - 1 )
726
- resp , err := requestWithRetries (ctx , t , appDetails .Client , http .MethodGet , appDetails .SubdomainAppURL (app ).String (), nil )
726
+ resp , err := requestWithRetries (ctx , t , appDetails .AppClient ( t ) , http .MethodGet , appDetails .SubdomainAppURL (app ).String (), nil )
727
727
require .NoError (t , err )
728
728
defer resp .Body .Close ()
729
729
0 commit comments