Skip to content

Commit

Permalink
added concurrent test for spring
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavBakshanskij committed Oct 24, 2024
1 parent 86378f8 commit cacd8da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static boolean safelyRun(String gerund, ThrowingRunnable runnable) {
}
}

public static boolean indexViolation(Exception e) {
public static boolean indexViolation(Throwable e) {
return (e instanceof SQLIntegrityConstraintViolationException)
|| (e.getClass().getName().equals("org.postgresql.util.PSQLException")
&& e.getMessage().contains("constraint"))
Expand Down

0 comments on commit cacd8da

Please sign in to comment.