Skip to content

Commit

Permalink
#1097 Allow processes to complete (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGee authored and lordofthejars committed Nov 1, 2018
1 parent 40b9ae5 commit 95a3588
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package org.arquillian.cube.docker.impl.client;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import org.arquillian.cube.docker.impl.docker.DockerClientExecutor;
import org.arquillian.cube.spi.ConnectionMode;
import org.arquillian.cube.spi.CubeConfiguration;
Expand All @@ -26,6 +21,14 @@
import org.jboss.arquillian.test.spi.event.suite.AfterSuite;
import org.jboss.arquillian.test.spi.event.suite.BeforeSuite;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;

public class CubeSuiteLifecycleController {

@Inject
Expand Down Expand Up @@ -101,10 +104,10 @@ private void waitForCompletion(Map<String, Future<RuntimeException>> stepStatus,
try {
RuntimeException e = result.getValue().get();
if (e != null) {
throw e;
Logger.getLogger(CubeSuiteLifecycleController.class.getName()).log(Level.SEVERE, message + ": " + result.getKey(), e);
}
} catch (Exception e) {
throw new RuntimeException(message + " " + result.getKey(), e);
Logger.getLogger(CubeSuiteLifecycleController.class.getName()).log(Level.SEVERE, message + " process: " + result.getKey(), e);
}
}
}
Expand Down

0 comments on commit 95a3588

Please sign in to comment.