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:
Simone Bordet 2019-02-15 17:33:29 +01:00
parent c68cb3149f
commit 2e67a26dd8
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{