File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,7 @@ def test_stdout_prepend_timestamp(self):
604604 # check if the message is at the end of the log line
605605 self .assertEqual (message .encode (), content [- len (message ):])
606606
607+ dispatcher .childlog .close ()
607608 dispatcher .close ()
608609
609610 def test_stderr_prepend_timestamp (self ):
@@ -622,8 +623,8 @@ def test_stderr_prepend_timestamp(self):
622623 process = DummyProcess (config )
623624
624625 dispatcher = self ._makeOne (process , channel = 'stderr' )
625- dispatcher .removelogs ()
626626 dispatcher .output_buffer = message
627+ dispatcher .removelogs ()
627628 dispatcher .record_output ()
628629
629630 # flush out the log into log files
@@ -640,8 +641,8 @@ def test_stderr_prepend_timestamp(self):
640641 # check if the message is at the end of the log line
641642 self .assertEqual (message .encode (), content [- len (message ):])
642643
644+ dispatcher .childlog .close ()
643645 dispatcher .close ()
644- dispatcher .removelogs ()
645646
646647class PInputDispatcherTests (unittest .TestCase ):
647648 def _getTargetClass (self ):
You can’t perform that action at this time.
0 commit comments