Complex command invocation structures
* cleanup - stop command thread pool on shutdown. Tests fail on Travis due to slow
shutdown in a background thread.. so adding an artificial delay to let the shutdown finish
@@ -277,6 +277,16 @@ public class CommandDecoratorIT {
public void assertPoolSize(int expected) {
long matched = allThreads().filter(this::isPoolThread).count();
+
+ if(expected > matched) {
+ // let shutdown finish...
+ try {
+ Thread.sleep(80);
+ } catch (InterruptedException e) {
+ // ignore....
+ }
+ }
+
assertEquals(expected, matched);
}
