diff --git a/stats/cloud/collector_test.go b/stats/cloud/collector_test.go index 325c1073c36a..c8b65b936c0f 100644 --- a/stats/cloud/collector_test.go +++ b/stats/cloud/collector_test.go @@ -535,7 +535,7 @@ func TestCloudCollectorRequireScriptName(t *testing.T) { }) _, err := New(testutils.NewLogger(t), config, &url.URL{Path: ""}, options, []lib.ExecutionStep{}, "1.0") require.Error(t, err) - assert.Contains(t, err.Error(), "K6_CLOUD_NAME") + assert.Contains(t, err.Error(), "script name not set") } func TestCloudCollectorAggregationPeriodZeroNoBlock(t *testing.T) {