@@ -383,13 +383,12 @@ func TestRuntimeOptions(t *testing.T) {
383383 },
384384 "summary and thresholds from env" : {
385385 useSysEnv : false ,
386- systemEnv : map [string ]string {"K6_NO_THRESHOLDS" : "false" , "K6_NO_SUMMARY" : "0" , " K6_SUMMARY_EXPORT" : "foo" },
386+ systemEnv : map [string ]string {"K6_NO_THRESHOLDS" : "false" , "K6_SUMMARY_EXPORT" : "foo" },
387387 expRTOpts : lib.RuntimeOptions {
388388 IncludeSystemEnvVars : null .NewBool (false , false ),
389389 CompatibilityMode : defaultCompatMode ,
390390 Env : map [string ]string {},
391391 NoThresholds : null .NewBool (false , true ),
392- NoSummary : null .NewBool (false , true ),
393392 SummaryExport : null .NewString ("foo" , true ),
394393 TracesOutput : defaultTracesOutput ,
395394 SummaryMode : defaultSummaryMode ,
@@ -398,14 +397,13 @@ func TestRuntimeOptions(t *testing.T) {
398397 },
399398 "summary and thresholds from env overwritten by CLI" : {
400399 useSysEnv : false ,
401- systemEnv : map [string ]string {"K6_NO_THRESHOLDS" : "FALSE" , "K6_NO_SUMMARY" : "0" , " K6_SUMMARY_EXPORT" : "foo" },
402- cliFlags : []string {"--no-thresholds" , "true" , "--no-summary" , "true" , "-- summary-export" , "bar" },
400+ systemEnv : map [string ]string {"K6_NO_THRESHOLDS" : "FALSE" , "K6_SUMMARY_EXPORT" : "foo" },
401+ cliFlags : []string {"--no-thresholds" , "true" , "--summary-export" , "bar" },
403402 expRTOpts : lib.RuntimeOptions {
404403 IncludeSystemEnvVars : null .NewBool (false , false ),
405404 CompatibilityMode : defaultCompatMode ,
406405 Env : map [string ]string {},
407406 NoThresholds : null .NewBool (true , true ),
408- NoSummary : null .NewBool (true , true ),
409407 SummaryExport : null .NewString ("bar" , true ),
410408 TracesOutput : defaultTracesOutput ,
411409 SummaryMode : defaultSummaryMode ,
@@ -418,12 +416,6 @@ func TestRuntimeOptions(t *testing.T) {
418416 cliFlags : []string {"--no-thresholds" , "true" },
419417 expErr : true ,
420418 },
421- "env var error detected even when CLI flags overwrite 2" : {
422- useSysEnv : false ,
423- systemEnv : map [string ]string {"K6_NO_SUMMARY" : "hoo" },
424- cliFlags : []string {"--no-summary" , "true" },
425- expErr : true ,
426- },
427419 "traces output default" : {
428420 useSysEnv : false ,
429421 expRTOpts : lib.RuntimeOptions {
0 commit comments