We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeddb52 commit aa5540bCopy full SHA for aa5540b
cli/cliui/agent_test.go
@@ -131,10 +131,15 @@ func TestAgent(t *testing.T) {
131
agent.FirstConnectedAt = ptr.Ref(time.Now())
132
agent.LifecycleState = codersdk.WorkspaceAgentLifecycleStarting
133
agent.StartedAt = ptr.Ref(time.Now())
134
+ agent.LogSources = []codersdk.WorkspaceAgentLogSource{{
135
+ ID: uuid.Nil,
136
+ DisplayName: "testing",
137
+ }}
138
logs <- []codersdk.WorkspaceAgentLog{
139
{
140
CreatedAt: time.Now(),
141
Output: "Hello world",
142
+ SourceID: uuid.Nil,
143
},
144
}
145
return nil
@@ -153,7 +158,7 @@ func TestAgent(t *testing.T) {
153
158
154
159
want: []string{
155
160
"⧗ Running workspace agent startup scripts",
156
- "Hello world",
161
+ "testing: Hello world",
157
162
"Bye now",
163
"✔ Running workspace agent startup scripts",
164
0 commit comments