test: add 100ms initial delay before starting to assume anything

This commit is contained in:
Stefan Kalscheuer 2019-06-20 15:00:13 +02:00
parent e0e2547288
commit 70144573d0

View File

@ -200,6 +200,10 @@ public class AsyncUraTripReaderTest {
// Open the reader.
tr.open();
// Read for 100ms.
TimeUnit.MILLISECONDS.sleep(100);
assumeThat("Trips should empty after 100ms without reading", trips, is(empty()));
// Now write a single line to the stream pipe.
assumeTrue("First line (version info) should be written", writeNextLine());
assumeTrue("Second line (first record) should be written", writeNextLine());