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

Commit

Permalink
Fix race in running_commands.rb
Browse files Browse the repository at this point in the history
[#115083357]

Signed-off-by: Jonathan Berkhahn <jaberkha@us.ibm.com>
  • Loading branch information
ScarletTanager authored and jberkhahn committed Mar 9, 2016
1 parent e984b63 commit b27f34f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion warden/spec/support/examples/running_commands.rb
Expand Up @@ -168,7 +168,10 @@ def received_messages(num)

r1 = c1.read
r2 = c2.read
expect(r1).to eq r2
# Test a tuple of the container IP and container path, since some of the memory
# stats may actually change between requests
expect(r1[:info][:container_ip]).to eq r2[:info][:container_ip]
expect(r1[:info][:container_path]).to eq r2[:info][:container_path]
end

it "should work when the connection that spawned the job disconnects" do
Expand Down

0 comments on commit b27f34f

Please sign in to comment.