Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
redir: adjust failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Virgil Dupras committed Jul 4, 2018
1 parent c1dd7ba commit a84f8b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/unit/action/forward_ports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"redir #{host_ip}:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"redir -n #{host_ip}:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end

Expand All @@ -44,7 +44,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"redir 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"redir -n 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end

Expand All @@ -53,7 +53,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"redir 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"redir -n 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end

Expand Down Expand Up @@ -92,7 +92,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"sudo redir #{host_ip}:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"sudo redir -n #{host_ip}:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end

Expand All @@ -101,7 +101,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"sudo redir 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"sudo redir -n 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end

Expand All @@ -110,7 +110,7 @@
subject.stub(system: true)
subject.call(env)
expect(subject).to have_received(:spawn).with(
"sudo redir 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
"sudo redir -n 127.0.0.1:#{host_port} #{container_ip}:#{guest_port} 2>/dev/null"
)
end
end
Expand Down

0 comments on commit a84f8b5

Please sign in to comment.