Skip to content

Commit aa5540b

Browse files
committed
Show display name in output
1 parent eeddb52 commit aa5540b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/cliui/agent_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,15 @@ func TestAgent(t *testing.T) {
131131
agent.FirstConnectedAt = ptr.Ref(time.Now())
132132
agent.LifecycleState = codersdk.WorkspaceAgentLifecycleStarting
133133
agent.StartedAt = ptr.Ref(time.Now())
134+
agent.LogSources = []codersdk.WorkspaceAgentLogSource{{
135+
ID: uuid.Nil,
136+
DisplayName: "testing",
137+
}}
134138
logs <- []codersdk.WorkspaceAgentLog{
135139
{
136140
CreatedAt: time.Now(),
137141
Output: "Hello world",
142+
SourceID: uuid.Nil,
138143
},
139144
}
140145
return nil
@@ -153,7 +158,7 @@ func TestAgent(t *testing.T) {
153158
},
154159
want: []string{
155160
"⧗ Running workspace agent startup scripts",
156-
"Hello world",
161+
"testing: Hello world",
157162
"Bye now",
158163
"✔ Running workspace agent startup scripts",
159164
},

0 commit comments

Comments
 (0)