test: add 100ms initial delay before starting to assume anything
This commit is contained in:
parent
e0e2547288
commit
70144573d0
@ -200,6 +200,10 @@ public class AsyncUraTripReaderTest {
|
|||||||
// Open the reader.
|
// Open the reader.
|
||||||
tr.open();
|
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.
|
// Now write a single line to the stream pipe.
|
||||||
assumeTrue("First line (version info) should be written", writeNextLine());
|
assumeTrue("First line (version info) should be written", writeNextLine());
|
||||||
assumeTrue("Second line (first record) should be written", writeNextLine());
|
assumeTrue("Second line (first record) should be written", writeNextLine());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user