File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -244,13 +244,13 @@ def test_download_should_work_when_remote_closes_channel_without_exit_status
244244 end
245245
246246 def test_download_should_raise_error_when_remote_closes_channel_before_end
247- file = prepare_file ( '/path/to/local.txt' , 'a' * 1234 )
247+ prepare_file ( '/path/to/local.txt' , 'a' * 1234 )
248248
249249 story do |session |
250250 channel = session . opens_channel
251251 channel . sends_exec 'scp -f /path/to/remote.txt'
252252 channel . sends_ok
253- channel . gets_data "C%04o 1234 remote.txt\n " % 0666
253+ channel . gets_data "C0666 1234 remote.txt\n "
254254 channel . sends_ok
255255 channel . gets_data 'a' * 500
256256 # We should have received 1234 bytes and \0 but remote closed before the end
@@ -268,8 +268,7 @@ def test_download_should_raise_error_when_remote_closes_channel_before_end
268268 end
269269
270270 assert_equal Net ::SCP ::Error , error . class
271- assert_equal 'SCP did not finish successfully (channel closed before end of transmission)' ,
272- error . message
271+ assert_equal 'SCP did not finish successfully (channel closed before end of transmission)' , error . message
273272 end
274273
275274 private
You can’t perform that action at this time.
0 commit comments