Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint: Style/SymbolProc
Browse files Browse the repository at this point in the history
olleolleolle committed Aug 8, 2024
1 parent 148ef59 commit fb1f285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test_network.rb
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@

describe 'with a fake server' do
it 'handle connection reset' do
memcached_mock(->(sock) { sock.close }) do
memcached_mock(lambda(&:close)) do
dc = Dalli::Client.new('localhost:19123')
assert_raises Dalli::RingError, message: 'No server available' do
dc.get('abc')
@@ -25,7 +25,7 @@

it 'handle connection reset with unix socket' do
socket_path = MemcachedMock::UNIX_SOCKET_PATH
memcached_mock(->(sock) { sock.close }, :start_unix, socket_path) do
memcached_mock(lambda(&:close), :start_unix, socket_path) do
dc = Dalli::Client.new(socket_path)
assert_raises Dalli::RingError, message: 'No server available' do
dc.get('abc')

0 comments on commit fb1f285

Please sign in to comment.