Skip to content

Commit

Permalink
Fix IsDockerWorking class not using TestContainersStrategy
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Solórzano <[email protected]>
(cherry picked from commit eac0e5e)
  • Loading branch information
jorsol authored and gsmet committed Nov 15, 2022
1 parent 8cd1185 commit c23f1a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Result get() {

Class<?> configurationClass = Thread.currentThread().getContextClassLoader()
.loadClass("org.testcontainers.utility.TestcontainersConfiguration");
Object configurationInstance = configurationClass.getMethod("instance").invoke(null);
Object configurationInstance = configurationClass.getMethod("getInstance").invoke(null);
String oldReusePropertyValue = (String) configurationClass
.getMethod("getUserProperty", String.class, String.class)
.invoke(configurationInstance, "testcontainers.reuse.enable", "false"); // use the default provided in TestcontainersConfiguration#environmentSupportsReuse
Expand Down

0 comments on commit c23f1a9

Please sign in to comment.