spec/support/keys.rb in rediska-0.2.3 vs spec/support/keys.rb in rediska-0.2.4
- old
+ new
@@ -69,10 +69,10 @@
end
it "should set a key's time to live in miliseconds" do
subject.set('key1', '1')
subject.pexpire('key1', 2200)
- expect(subject.pttl('key1')).to be_within(0.5).of(2200)
+ expect(subject.pttl('key1')).to be_within(1).of(2200)
end
it 'should set the expiration for a key as a UNIX timestamp' do
subject.set('key1', '1')
subject.expireat('key1', Time.now.to_i + 100)