@@ -191,7 +191,7 @@ func TestScriptHTTPRun(t *testing.T) {
191
191
expectSuccess : false ,
192
192
expectError : ErrFromRunner ,
193
193
expectLogs : nonDebugLogLine + fmt .Sprintf (
194
- "msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
194
+ "level= \" error \" msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
195
195
"something went wrong" ,
196
196
"something-wrong" ,
197
197
),
@@ -209,7 +209,7 @@ func TestScriptHTTPRun(t *testing.T) {
209
209
expectSuccess : false ,
210
210
expectError : nil ,
211
211
expectLogs : nonDebugLogLine + fmt .Sprintf (
212
- "msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
212
+ "level= \" error \" msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
213
213
"syntax error somewhere or something" ,
214
214
"aborted" ,
215
215
),
@@ -226,7 +226,7 @@ func TestScriptHTTPRun(t *testing.T) {
226
226
expectSuccess : false ,
227
227
expectErrorAs : & logfmt.SyntaxError {},
228
228
expectLogs : `level="error"` + "\n " + fmt .Sprintf (
229
- "msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
229
+ "level= \" error \" msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
230
230
"we killed k6" ,
231
231
"aborted" ,
232
232
),
@@ -243,7 +243,7 @@ func TestScriptHTTPRun(t *testing.T) {
243
243
expectSuccess : false ,
244
244
expectErrorAs : expfmt.ParseError {},
245
245
expectLogs : nonDebugLogLine + fmt .Sprintf (
246
- "msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
246
+ "level= \" error \" msg=\" script did not execute successfully\" error=%q errorCode=%q\n " ,
247
247
"we killed k6" ,
248
248
"aborted" ,
249
249
),
0 commit comments