Skip to content
Snippets Groups Projects
Commit e53f77ab authored by Lars Erik Blümke's avatar Lars Erik Blümke
Browse files

fixed JMSReaderTest

parent a2570c0c
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ import kieker.common.record.IMonitoringRecord;
import kieker.common.record.system.CPUUtilizationRecord;
/**
* Test for the JMSReader. TODO: Sometimes this test fails on the very first execution (e.g. first run after starting Eclipse). This should not happen!
* Test for the JMSReader.
*
* @author Lars Erik Bluemke
*
......@@ -92,8 +92,8 @@ public class JMSReaderTest {
// Send the record
jmsWriter.write(monitoringRecord);
// Let the reader consume the record
jmsReaderThread.join(50);
// Let the reader consume the record (100 ms are a compromise but waiting a shorter period resulted in a still empty output list in some cases)
jmsReaderThread.join(100);
assertThat(jmsReaderThread.getOutputList().isEmpty(), is(false));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment