Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Fixing unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Dec 15, 2018
1 parent a0ffe70 commit 4d27dde
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,11 @@ public RemoteProxy remove(RemoteProxy proxy) {
if (proxy instanceof DockerSeleniumRemoteProxy) {
DockerSeleniumRemoteProxy dockerSeleniumRemoteProxy = (DockerSeleniumRemoteProxy) proxy;
// Always try to remove the proxy from the pool - this will stop the container.
String proxyId = dockerSeleniumRemoteProxy.getId();
try {
LOGGER.debug("Stopping removed container [{}", proxyId);
starter.stopContainer(proxyId);
LOGGER.debug("Stopping removed container [{}", dockerSeleniumRemoteProxy.getId());
starter.stopContainer(dockerSeleniumRemoteProxy.getContainerId());
} catch (Exception e) {
LOGGER.error("Failed to stop container [" + proxyId + "].", e);
LOGGER.error("Failed to stop container [" + dockerSeleniumRemoteProxy.getId() + "].", e);
}
}
return super.remove(proxy);
Expand Down

0 comments on commit 4d27dde

Please sign in to comment.