diff --git a/lib/report_portal/cucumber/formatter.rb b/lib/report_portal/cucumber/formatter.rb index 327450a..e1a440f 100644 --- a/lib/report_portal/cucumber/formatter.rb +++ b/lib/report_portal/cucumber/formatter.rb @@ -82,7 +82,8 @@ def finish_message_processing return if use_same_thread_for_reporting? - sleep 0.03 while !@queue.empty? || @queue.num_waiting.zero? # TODO: how to interrupt launch if the user aborted execution + # TODO: how to interrupt launch if the user aborted execution + sleep 0.03 while !@queue.empty? || @queue.num_waiting.zero? || @thread.join(1) @thread.kill end