Skip to content

Commit adaea23

Browse files
committed
Apply the new socket_timeout at mocked expectations
1 parent 385626f commit adaea23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activesupport/test/cache/stores/mem_cache_store_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_write_expires_at
179179
cache = lookup_store(raw: true, namespace: nil)
180180

181181
Time.stub(:now, Time.now) do
182-
assert_called_with client(cache), :set, ["key_with_expires_at", "bar", 30 * 60], namespace: nil, pool: false, raw: true, compress_threshold: 1024, expires_in: 1800.0 do
182+
assert_called_with client(cache), :set, ["key_with_expires_at", "bar", 30 * 60], namespace: nil, pool: false, raw: true, compress_threshold: 1024, expires_in: 1800.0, socket_timeout: 60 do
183183
cache.write("key_with_expires_at", "bar", expires_at: 30.minutes.from_now)
184184
end
185185
end
@@ -265,7 +265,7 @@ def test_no_multiple_compress
265265
def test_unless_exist_expires_when_configured
266266
cache = lookup_store(namespace: nil)
267267

268-
assert_called_with client(cache), :add, ["foo", Object, 1], namespace: nil, pool: false, compress_threshold: 1024, expires_in: 1, unless_exist: true do
268+
assert_called_with client(cache), :add, ["foo", Object, 1], namespace: nil, pool: false, compress_threshold: 1024, expires_in: 1, socket_timeout: 60, unless_exist: true do
269269
cache.write("foo", "bar", expires_in: 1, unless_exist: true)
270270
end
271271
end

0 commit comments

Comments
 (0)