Skip to content
Snippets Groups Projects
Commit cf6db011 authored by Unit 193's avatar Unit 193
Browse files

d/p/add_net-ssh_4.0_compatibility.patch: Add an upstream commit to fix...

d/p/add_net-ssh_4.0_compatibility.patch: Add an upstream commit to fix compatibility with net-ssh 4.x.
parent b9794806
No related branches found
No related tags found
No related merge requests found
ruby-net-sftp (1:2.1.2-4) UNRELEASED; urgency=medium
* d/p/add_net-ssh_4.0_compatibility.patch: (Closes: #869174)
- Add an upstream commit to fix compatibility with net-ssh 4.x.
-- Unit 193 <unit193@ubuntu.com> Mon, 24 Jul 2017 02:14:23 -0400
ruby-net-sftp (1:2.1.2-3) unstable; urgency=medium
* Upload to unstable now that jessie is released.
......
Description: Fix compatiblity with net-ssh 4.0+
Origin: Upstream, https://github.com/net-ssh/net-sftp/commit/9870b32d31bbe5cddceead54c64f71e4fd91779e
Author: Vít Ondruch <vondruch@redhat.com>
Bug-Debian: https://bugs.debian.org/869174
---
test/test_download.rb | 4 +++-
test/test_session.rb | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/test/test_download.rb b/test/test_download.rb
index d4a5f0b..d9582b6 100644
--- a/test/test_download.rb
+++ b/test/test_download.rb
@@ -139,7 +139,9 @@ def test_download_file_should_transfer_remote_to_local_buffer
def test_download_directory_to_buffer_should_fail
expect_sftp_session :server_version => 3
- assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) }
+ Net::SSH::Test::Extensions::IO.with_test_extension do
+ assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) }
+ end
end
private
diff --git a/test/test_session.rb b/test/test_session.rb
index a59058a..c398436 100644
--- a/test/test_session.rb
+++ b/test/test_session.rb
@@ -660,8 +660,10 @@ def test_unblock_bang_should_block_and_return_response
def assert_not_implemented(server_version, command, *args)
expect_sftp_session :server_version => 1
- sftp.connect!
- assert_raises(NotImplementedError) { sftp.send(command, *args) }
+ Net::SSH::Test::Extensions::IO.with_test_extension do
+ sftp.connect!
+ assert_raises(NotImplementedError) { sftp.send(command, *args) }
+ end
end
def assert_command_with_callback(command, *args)
disable-gem-in-tests.patch
disable_test_triggering_mocha_bug_690562.patch
add_net-ssh_4.0_compatibility.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment