Skip to content

Commit

Permalink
Lint: Style/SymbolProc
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Aug 13, 2024
1 parent cc8b2a6 commit 6032ca5
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
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit 6032ca5

Please sign in to comment.