mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Timeout on waiting for server thread to die in Py console tests added
The timeout added to avoid hanging of Python console tests.
This commit is contained in:
@@ -45,10 +45,7 @@ import org.junit.Assert;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.Semaphore;
|
||||
import java.util.concurrent.*;
|
||||
|
||||
/**
|
||||
* @author traff
|
||||
@@ -113,8 +110,8 @@ public class PyConsoleTask extends PyExecutionFixtureTestTask {
|
||||
/**
|
||||
* Disposes Python console and waits for Python console server thread to die.
|
||||
*/
|
||||
private void disposeConsole() throws InterruptedException, ExecutionException {
|
||||
disposeConsoleAsync().get();
|
||||
private void disposeConsole() throws InterruptedException, ExecutionException, TimeoutException {
|
||||
disposeConsoleAsync().get(30L, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user