File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,15 @@ func TestAgent(t *testing.T) {
131
131
agent .FirstConnectedAt = ptr .Ref (time .Now ())
132
132
agent .LifecycleState = codersdk .WorkspaceAgentLifecycleStarting
133
133
agent .StartedAt = ptr .Ref (time .Now ())
134
+ agent .LogSources = []codersdk.WorkspaceAgentLogSource {{
135
+ ID : uuid .Nil ,
136
+ DisplayName : "testing" ,
137
+ }}
134
138
logs <- []codersdk.WorkspaceAgentLog {
135
139
{
136
140
CreatedAt : time .Now (),
137
141
Output : "Hello world" ,
142
+ SourceID : uuid .Nil ,
138
143
},
139
144
}
140
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" ,
158
163
"✔ Running workspace agent startup scripts" ,
159
164
},
You can’t perform that action at this time.
0 commit comments