@@ -52,8 +52,8 @@ func TestAgent(t *testing.T) {
52
52
want : []string {
53
53
"⧗ Waiting for the workspace agent to connect" ,
54
54
"✔ Waiting for the workspace agent to connect" ,
55
- "⧗ Running workspace agent startup script (non-blocking)" ,
56
- "Notice: The startup script is still running and your workspace may be incomplete." ,
55
+ "⧗ Running workspace agent startup scripts (non-blocking)" ,
56
+ "Notice: The startup scripts are still running and your workspace may be incomplete." ,
57
57
"For more information and troubleshooting, see" ,
58
58
},
59
59
},
@@ -86,8 +86,8 @@ func TestAgent(t *testing.T) {
86
86
"The workspace agent is having trouble connecting, wait for it to connect or restart your workspace." ,
87
87
"For more information and troubleshooting, see" ,
88
88
"✔ Waiting for the workspace agent to connect" ,
89
- "⧗ Running workspace agent startup script (non-blocking)" ,
90
- "✔ Running workspace agent startup script (non-blocking)" ,
89
+ "⧗ Running workspace agent startup scripts (non-blocking)" ,
90
+ "✔ Running workspace agent startup scripts (non-blocking)" ,
91
91
},
92
92
},
93
93
{
@@ -120,7 +120,7 @@ func TestAgent(t *testing.T) {
120
120
},
121
121
},
122
122
{
123
- name : "Startup script logs " ,
123
+ name : "Startup Logs " ,
124
124
opts : cliui.AgentOptions {
125
125
FetchInterval : time .Millisecond ,
126
126
Wait : true ,
@@ -152,10 +152,10 @@ func TestAgent(t *testing.T) {
152
152
},
153
153
},
154
154
want : []string {
155
- "⧗ Running workspace agent startup script " ,
155
+ "⧗ Running workspace agent startup scripts " ,
156
156
"Hello world" ,
157
157
"Bye now" ,
158
- "✔ Running workspace agent startup script " ,
158
+ "✔ Running workspace agent startup scripts " ,
159
159
},
160
160
},
161
161
{
@@ -181,10 +181,10 @@ func TestAgent(t *testing.T) {
181
181
},
182
182
},
183
183
want : []string {
184
- "⧗ Running workspace agent startup script " ,
184
+ "⧗ Running workspace agent startup scripts " ,
185
185
"Hello world" ,
186
- "✘ Running workspace agent startup script " ,
187
- "Warning: The startup script exited with an error and your workspace may be incomplete." ,
186
+ "✘ Running workspace agent startup scripts " ,
187
+ "Warning: A startup script exited with an error and your workspace may be incomplete." ,
188
188
"For more information and troubleshooting, see" ,
189
189
},
190
190
},
@@ -229,9 +229,9 @@ func TestAgent(t *testing.T) {
229
229
},
230
230
},
231
231
want : []string {
232
- "⧗ Running workspace agent startup script " ,
232
+ "⧗ Running workspace agent startup scripts " ,
233
233
"Hello world" ,
234
- "✔ Running workspace agent startup script " ,
234
+ "✔ Running workspace agent startup scripts " ,
235
235
},
236
236
wantErr : true ,
237
237
},
@@ -339,6 +339,9 @@ func TestAgent(t *testing.T) {
339
339
line := s .Text ()
340
340
t .Log (line )
341
341
if len (tc .want ) == 0 {
342
+ for i := 0 ; i < 5 ; i ++ {
343
+ t .Log (line )
344
+ }
342
345
require .Fail (t , "unexpected line" , line )
343
346
}
344
347
require .Contains (t , line , tc .want [0 ])
0 commit comments