just test ci behavior

This commit is contained in:
marc hurabielle 2019-03-22 16:22:25 +09:00
parent bc2b4f6e66
commit be6663f895

View file

@ -318,13 +318,11 @@ public class IPythonInterpreterTest extends BasePythonInterpreterTest {
});
pool.execute(interpretFuture);
// we sleep to ensure that the paragraph is running
Thread.sleep(3000);
pool.execute(completionFuture);
// We ensure that running and auto completion are not hanging.
// Not testing anything just to see the ci behavior
InterpreterResult res = interpretFuture.get(20000, TimeUnit.MILLISECONDS);
List<InterpreterCompletion> autoRes = completionFuture.get(1000, TimeUnit.MILLISECONDS);
pool.execute(completionFuture);
List<InterpreterCompletion> autoRes = completionFuture.get(5000, TimeUnit.MILLISECONDS);
// We ensure that running and auto completion are not hanging.
assertTrue(res.code().name().equals("SUCCESS"));
assertTrue(autoRes.size() > 0);
}