-
Bug
-
Resolution: Done
-
Major
-
11.0.0.Dev03
-
None
If we use InfinispanServerRule deploying maven artifacts and restart the server during the tests, we will receive FileAlreadyExistsException
@ClassRule public static InfinispanServerRule SERVERS = InfinispanServerRuleBuilder.config("configuration/PersistenceTest.xml") .numServers(1) .runMode(ServerRunMode.CONTAINER) .mavenArtifacts("com.h2database:h2:1.4.199") .build(); ... ContainerInfinispanServerDriver serverDriver = (ContainerInfinispanServerDriver) SERVER.getServerDriver(); RestClient rest = SERVER_TEST.rest().get(); sync(rest.server().stop()); Eventually.eventually( "Cluster did not shutdown within timeout", () -> (!serverDriver.isRunning(0) ), serverDriver.getTimeout(), 1, TimeUnit.SECONDS); serverDriver.restart(0);