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

Commit

Permalink
Remove redundant expectations (tested in em-posix-spawn)
Browse files Browse the repository at this point in the history
[#115083357]

Signed-off-by: Swetha Repakula <srepaku@us.ibm.com>
  • Loading branch information
ScarletTanager authored and swetharepakula committed Mar 9, 2016
1 parent 6a2b9b9 commit e984b63
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions warden/spec/support/examples/running_commands.rb
Expand Up @@ -188,9 +188,6 @@ def received_messages(num)
script = "( head -c #{1024 * 200} /dev/urandom; sleep 1 ) 1>&#{fd}"
response = client.run(:handle => handle, :script => script, :discard_output => discard_output)
expect(Rspec::Eventually::Eventually.new(eq 255).matches? -> { response.exit_status }).to be true
expect(Rspec::Eventually::Eventually.new(be > 1024 * 100).matches? -> { response.send(io).size }).to be true
expect(Rspec::Eventually::Eventually.new(be <= 1024 * 100 + 1024 * 64).matches? -> { response.send(io).size }).to be true

# Test that iomux-spawn was killed
expect(Rspec::Eventually::Eventually.new(eq "").matches? -> { `ps ax | grep iomux-spawn | grep #{handle} | grep -v grep` }).to be true
end
Expand Down

0 comments on commit e984b63

Please sign in to comment.