diff --git a/test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go b/test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go index 78e2c5054..4e79cab32 100644 --- a/test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go +++ b/test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go @@ -474,7 +474,7 @@ func TestCloudSlackE2E(t *testing.T) { fmt.Sprintf("The 'latest' tag used in 'nginx:latest' image of Pod '%s/%s' container 'nginx' should be avoided.", pod.Namespace, pod.Name), } - var result = true + result := true for _, str := range expStrings { if !strings.Contains(msg, str) { result = false @@ -708,7 +708,7 @@ func screenshotIfShould(t *testing.T, cfg E2ESlackConfig, page *rod.Page) { return } - err = os.WriteFile(filePath, data, 0644) + err = os.WriteFile(filePath, data, 0o644) assert.NoError(t, err) }