Skip to content

Commit

Permalink
test/e2e: ensure there is no error waiting for instance
Browse files Browse the repository at this point in the history
  • Loading branch information
vaijab committed Feb 27, 2024
1 parent a744a14 commit 2af5dab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ func TestCloudSlackE2E(t *testing.T) {
return strings.Contains(msg, fmt.Sprintf("Botkube instance %q is now active.", deployment.Name)), 0, ""
}
err = tester.WaitForMessagePosted(tester.BotUserID(), channel.ID(), 3, assertionFn)
require.NoError(t, err)

cmdHeader := func(command string) string {
return fmt.Sprintf("`%s` on `%s`", command, deployment.Name)
Expand Down Expand Up @@ -456,7 +457,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
Expand Down Expand Up @@ -688,7 +689,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)
}

Expand Down

0 comments on commit 2af5dab

Please sign in to comment.