Skip to content

Commit

Permalink
Avoid loading testcontainers unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Feb 2, 2022
1 parent 1a73092 commit e1f394d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions extensions/apicurio-registry-avro/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-devservices</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private List<DevServiceDescription> buildServiceDescriptions(List<DevServicesRes
}

private Map<String, Container> fetchContainerInfos(Set<String> containerIds) {
if (!isDockerWorking.getAsBoolean() || containerIds.isEmpty()) {
if (containerIds.isEmpty() || !isDockerWorking.getAsBoolean()) {
return Collections.emptyMap();
}
return DockerClientFactory.lazyClient().listContainersCmd()
Expand Down

0 comments on commit e1f394d

Please sign in to comment.