Skip to content

Commit

Permalink
Raise cache ttl to fix flaky spec
Browse files Browse the repository at this point in the history
braintreeps committed Apr 24, 2018
1 parent 96a957d commit 5b39d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/litmus_paper/agent_check_handler_spec.rb
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ def app
it "retrieves a cached value during the cache_ttl" do
begin
cache = LitmusPaper::AgentCheckHandler.instance_variable_get(:@cache)
cache.instance_variable_set(:@ttl, 0.05)
cache.instance_variable_set(:@ttl, 0.25)
LitmusPaper::AgentCheckHandler.instance_variable_set(:@cache, cache)

test_service = LitmusPaper::Service.new(
@@ -101,7 +101,7 @@ def app

LitmusPaper::AgentCheckHandler.handle('test').should == "ready\tup\t88%"

sleep 0.05
sleep 0.25

LitmusPaper::AgentCheckHandler.handle('test').should_not == "ready\tup\t88%"
ensure

0 comments on commit 5b39d2f

Please sign in to comment.