spec/pop_spec.rb in agent-0.11.0 vs spec/pop_spec.rb in agent-0.12.0

- old
+ new

@@ -26,21 +26,21 @@ sleep 0.2 @pop.send{1} s, _ = @ack.receive - expect(Time.now - s).to be_within(0.01).of(0) + expect(Time.now - s).to be_within(0.2).of(0) end it "should continue when closed" do go!{ @pop.wait; @ack.send(Time.now) } sleep 0.2 @pop.close s, _ = @ack.receive - expect(Time.now - s).to be_within(0.01).of(0) + expect(Time.now - s).to be_within(0.2).of(0) end it "should be able to be gracefully rolled back" do expect(@pop).not_to be_received @pop.send{ raise Agent::Errors::Rollback } @@ -54,10 +54,10 @@ sleep 0.2 s, _ = @ack.receive - expect(Time.now - s).to be_within(0.01).of(0.2) + expect(Time.now - s).to be_within(0.05).of(0.2) end end context "with a blocking_once" do before do