@@ -28,9 +28,9 @@ class Jail < Safemode::Jail
2828 describe 'task reporting' do
2929 let ( :fake_outputs ) do
3030 [
31- { 'output_type' => 'stderr' , 'output' => "error" } ,
32- { 'output_type' => 'stdout' , 'output' => "output" } ,
33- { 'output_type' => 'debug' , 'output' => "debug" } ,
31+ { 'output_type' => 'stderr' , 'output' => "error\n " } ,
32+ { 'output_type' => 'stdout' , 'output' => "output\n " } ,
33+ { 'output_type' => 'debug' , 'output' => "debug\n " } ,
3434 ]
3535 end
3636 let ( :fake_task ) { FakeTask . new ( result : 'success' , action_continuous_output : fake_outputs , :ended_at => Time . new ( 2020 , 12 , 1 , 0 , 0 , 0 ) . utc ) }
@@ -50,9 +50,9 @@ class Jail < Safemode::Jail
5050 row = rows . first
5151 assert_equal host . name , row [ 'Host' ]
5252 assert_equal 'success' , row [ 'Result' ]
53- assert_equal ' error' , row [ 'stderr' ]
54- assert_equal ' output' , row [ 'stdout' ]
55- assert_equal ' debug' , row [ 'debug' ]
53+ assert_equal " error\n " , row [ 'stderr' ]
54+ assert_equal " output\n " , row [ 'stdout' ]
55+ assert_equal " debug\n " , row [ 'debug' ]
5656 assert_kind_of Time , Time . zone . parse ( row [ 'Finished' ] ) , 'Parsing of time column failed'
5757 end
5858 end
0 commit comments