Skip to content

Commit

Permalink
Fix async specs to use shorter delay
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Jan 24, 2014
1 parent c7d6e14 commit 0b0b270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/async_spec.rb
Expand Up @@ -22,7 +22,7 @@
async "can finish running after a long delay" do
obj = [1, 2, 3, 4]

set_timeout 100 do
delay(1) do
run_async { obj.should == [1, 2, 3, 4] }
end
end
Expand All @@ -32,7 +32,7 @@
expect(:foo).to eq(:baz)
}.to raise_error(Exception)

set_timeout(0) do
delay(0) do
run_async { expect(42).to eq(42) }
end
end
Expand Down

0 comments on commit 0b0b270

Please sign in to comment.