Closed taig closed 2 years ago
Thanks for the report, I'll take a look at it.
I am sorry for the late response. However, I need to ask if you are using SBT server or custom classloader or something similar that could cause the same class to be loaded multiple times in the same Java virtual machine?
Yes, I'm using this library with sbt. As far as I know, sbt server is not involved when running sbt in batch mode on CI, but the issue occurs in this environment nonetheless. But still, sbt does a lot of classpath magic behind the scenes that I occasionally run into. So if the reported issue might be caused by classloader issues, I'm still convinced that sbt is to blame here.
Sorry, SBT is not supported at the moment. There are some other problems regarding classpath magic and I am not familiar enough with it to be able to solve them. For instance this one: https://github.com/zonkyio/embedded-postgres/pull/65
I'm seeing this exception pop up in my CI integration tests rather frequently. I assume it is related to the concurrent execution of the test framework. For me, it is sufficient to simply catch and retry, but perhaps you can find a proper way to handle this: