File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
site/src/modules/resources Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package agentcontainers_test
3
3
import (
4
4
"context"
5
5
"encoding/json"
6
- "errors"
7
6
"fmt"
8
7
"math/rand"
9
8
"net/http"
@@ -1687,7 +1686,7 @@ func TestAPI(t *testing.T) {
1687
1686
1688
1687
// We're going to force the container CLI to fail, which will allow us to test the
1689
1688
// error handling.
1690
- var simulatedError = errors .New ("simulated error" )
1689
+ simulatedError := xerrors .New ("simulated error" )
1691
1690
mCCLI .EXPECT ().DetectArchitecture (gomock .Any (), testContainer .ID ).Return ("" , simulatedError ).Times (1 )
1692
1691
1693
1692
mClock .Set (time .Now ()).MustWait (ctx )
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { AppStatuses } from "pages/WorkspacePage/AppStatuses";
24
24
import type { FC } from "react" ;
25
25
import { useEffect } from "react" ;
26
26
import { useMutation , useQueryClient } from "react-query" ;
27
+ import { cn } from "utils/cn" ;
27
28
import { portForwardURL } from "utils/portForward" ;
28
29
import { AgentApps , organizeAgentApps } from "./AgentApps/AgentApps" ;
29
30
import { AgentButton } from "./AgentButton" ;
@@ -34,7 +35,6 @@ import { AgentSSHButton } from "./SSHButton/SSHButton";
34
35
import { SubAgentOutdatedTooltip } from "./SubAgentOutdatedTooltip" ;
35
36
import { TerminalLink } from "./TerminalLink/TerminalLink" ;
36
37
import { VSCodeDevContainerButton } from "./VSCodeDevContainerButton/VSCodeDevContainerButton" ;
37
- import { cn } from "utils/cn" ;
38
38
39
39
type AgentDevcontainerCardProps = {
40
40
parentAgent : WorkspaceAgent ;
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ export const AgentStatus: FC<AgentStatusProps> = ({ agent }) => {
283
283
) ;
284
284
} ;
285
285
286
- export const SubAgentStatus : FC < SubAgentStatusProps > = ( { agent } ) => {
286
+ const SubAgentStatus : FC < SubAgentStatusProps > = ( { agent } ) => {
287
287
if ( ! agent ) {
288
288
return < DisconnectedStatus /> ;
289
289
}
@@ -305,7 +305,7 @@ export const SubAgentStatus: FC<SubAgentStatusProps> = ({ agent }) => {
305
305
) ;
306
306
} ;
307
307
308
- export const DevcontainerStartError : FC < AgentStatusProps > = ( { agent } ) => {
308
+ const DevcontainerStartError : FC < AgentStatusProps > = ( { agent } ) => {
309
309
return (
310
310
< HelpTooltip >
311
311
< PopoverTrigger role = "status" aria-label = "Start error" >
You can’t perform that action at this time.
0 commit comments