Issue #3343 - Add an API/tools to be able to test Jetty Distribution.
Fixed concurrency issue while reading the console logs. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
c68cb3149f
commit
2e67a26dd8
|
@ -35,6 +35,8 @@ import java.util.Arrays;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Queue;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
|
@ -376,7 +378,7 @@ public class DistributionTester
|
|||
{
|
||||
private final Process process;
|
||||
private final List<ConsoleStreamer> consoleStreamers = new ArrayList<>();
|
||||
private final List<String> logs = new ArrayList<>();
|
||||
private final Queue<String> logs = new ConcurrentLinkedQueue<>();
|
||||
|
||||
private Run(Process process)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue