ranger
ranger copied to clipboard
[Trino Plugin] fix the test failure
I got test failure when test the trino plugin:
Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
at org.slf4j.impl.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:54)
... 28 more
The failure is that the two jars log4j-over-slf4j.jar AND slf4j-log4j12.jar are detected in the classpath: https://stackoverflow.com/questions/20117720/detected-both-log4j-over-slf4j-jar-and-slf4j-log4j12-jar-on-the-class-path-pree

So I removed the test dependency log4j-over-slf4j to run the test.