Skip to content

Commit

Permalink
chore: add extra debugging for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong committed Aug 2, 2024
1 parent a9de926 commit d11327d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/it/test-code-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</cli>
<args>
<arg>--print-deps</arg>
<arg>-d</arg>
</args>
<apiToken>${env.SNYK_TEST_TOKEN}</apiToken>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion src/it/test-code-test/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.codehaus.plexus.util.FileUtils;
String log = FileUtils.fileRead(new File(basedir, "build.log"))

if (!log.contains("SQL Injection")) {
throw new Exception("no sql injection issue found")
throw new Exception("no sql injection issue found.\nLOG:\n" + log + "\nELOG\n")
}

return true;

0 comments on commit d11327d

Please sign in to comment.