File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ describe Cache::PostgresCacheStore do
3434 value = store.fetch(" foo" ) { " bar" }
3535 value.should eq(" bar" )
3636
37- sleep 2
37+ sleep 2 .seconds
3838
3939 value = store.fetch(" foo" ) { " baz" }
4040 value.should eq(" baz" )
@@ -46,7 +46,7 @@ describe Cache::PostgresCacheStore do
4646 value = store.fetch(" foo" , expires_in: 1 .hours) { " bar" }
4747 value.should eq(" bar" )
4848
49- sleep 2
49+ sleep 2 .seconds
5050
5151 value = store.fetch(" foo" ) { " baz" }
5252 value.should eq(" bar" )
@@ -58,7 +58,7 @@ describe Cache::PostgresCacheStore do
5858 value = store.fetch(" foo" , expires_in: 1 .seconds) { " bar" }
5959 value.should eq(" bar" )
6060
61- sleep 2
61+ sleep 2 .seconds
6262
6363 value = store.fetch(" foo" ) { " baz" }
6464 value.should eq(" baz" )
@@ -94,7 +94,7 @@ describe Cache::PostgresCacheStore do
9494 store = Cache ::PostgresCacheStore (String , String ).new(12 .hours, pg)
9595 store.write(" foo" , " bar" , expires_in: 1 .second)
9696
97- sleep 2
97+ sleep 2 .seconds
9898
9999 value = store.read(" foo" )
100100 value.should eq(nil )
@@ -141,7 +141,7 @@ describe Cache::PostgresCacheStore do
141141
142142 store.write(" foo" , " bar" )
143143
144- sleep 2
144+ sleep 2 .seconds
145145
146146 store.exists?(" foo" ).should eq(false )
147147 end
You can’t perform that action at this time.
0 commit comments