Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miryamfoiferCX committed Aug 15, 2024
1 parent fa8db7b commit 3279e3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,12 @@ func TestPRGitlabDecorationFailureRunningScanCase(t *testing.T) {
file := createOutputFile(t, "test_output.log")
_, _ = executeCommand(t, args...)
stdoutString, err := util.ReadFileAsString(file.Name())
if err != nil {
t.Fatalf("Failed to read log file: %v", err)
}
assert.Equal(t, strings.Contains(stdoutString, prdDecorationForbiddenMessage), true, "Expected output: %s", prdDecorationForbiddenMessage)

defer deleteOutputFile(t, testFileName, file)
defer deleteOutputFile(t, file)
defer logger.SetOutput(os.Stdout)
}

Expand Down

0 comments on commit 3279e3a

Please sign in to comment.