From ba40f59e67376a832827f635ccc13628f82df251 Mon Sep 17 00:00:00 2001 From: na-- Date: Tue, 23 Feb 2021 15:55:09 +0200 Subject: [PATCH] Improve a test check Co-authored-by: Mihail Stoykov --- stats/cloud/collector_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {