We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc85aa44 commitdf48a0cCopy full SHA for df48a0c
cli/cliui/agent_test.go
@@ -95,6 +95,8 @@ func TestAgent(t *testing.T) {
95
iter: []func(context.Context,*testing.T,*codersdk.WorkspaceAgent,<-chanstring,chan []codersdk.WorkspaceAgentLog)error{
96
func(_ context.Context,_*testing.T,agent*codersdk.WorkspaceAgent,_<-chanstring,_chan []codersdk.WorkspaceAgentLog)error {
97
agent.Status=codersdk.WorkspaceAgentConnecting
98
+agent.LifecycleState=codersdk.WorkspaceAgentLifecycleStarting
99
+agent.StartedAt=ptr.Ref(time.Now())
100
returnnil
101
},
102
func(_ context.Context,t*testing.T,agent*codersdk.WorkspaceAgent,output<-chanstring,_chan []codersdk.WorkspaceAgentLog)error {
@@ -104,6 +106,7 @@ func TestAgent(t *testing.T) {
104
106
agent.Status=codersdk.WorkspaceAgentConnected
105
107
agent.LifecycleState=codersdk.WorkspaceAgentLifecycleStartTimeout
108
agent.FirstConnectedAt=ptr.Ref(time.Now())
109
+agent.ReadyAt=ptr.Ref(time.Now())
110
111
112