Skip to content

Commit c73fca4

Browse files
Merge pull request #81 from PhilippSalvisberg/80_no_output
#80 - Realtime reporter produces no output
2 parents 5649b56 + 0ed7fdc commit c73fca4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

sqldev/src/main/java/org/utplsql/sqldev/runner/UtplsqlRunner.xtend

+7-5
Original file line numberDiff line numberDiff line change
@@ -283,16 +283,18 @@ class UtplsqlRunner implements RealtimeReporterEventConsumer {
283283
def runTestAsync() {
284284
// start tests when the GUI has been successfully initialized.
285285
if (initGUI) {
286-
// the producer
287-
val Runnable producer = [|produce]
288-
producerThread = new Thread(producer)
289-
producerThread.name = "realtime producer"
290-
producerThread.start
291286
// the consumer
292287
val Runnable consumer = [|consume]
293288
consumerThread = new Thread(consumer)
294289
consumerThread.name = "realtime consumer"
295290
consumerThread.start
291+
// avoid concurrency on output header table to fix issue #80
292+
Thread.sleep(100)
293+
// the producer
294+
val Runnable producer = [|produce]
295+
producerThread = new Thread(producer)
296+
producerThread.name = "realtime producer"
297+
producerThread.start
296298
}
297299
}
298300

0 commit comments

Comments
 (0)