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
244
244
end
245
245
246
246
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 )
248
248
249
249
story do |session |
250
250
channel = session . opens_channel
251
251
channel . sends_exec 'scp -f /path/to/remote.txt'
252
252
channel . sends_ok
253
- channel . gets_data "C%04o 1234 remote.txt\n " % 0666
253
+ channel . gets_data "C0666 1234 remote.txt\n "
254
254
channel . sends_ok
255
255
channel . gets_data 'a' * 500
256
256
# 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
268
268
end
269
269
270
270
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
273
272
end
274
273
275
274
private
You can’t perform that action at this time.
0 commit comments