You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: adapter_lint.rb
    path of file: ./repos/webmachine-ruby/lib/webmachine/spec
    
    the code of the file until where you have to start completion: require 'webmachine/spec/test_resource'
require 'net/http'

ADDRESS = '127.0.0.1'

shared_examples_for :adapter_lint do
  attr_reader :client

  class TestApplicationNotResponsive <
    
  def find_free_port
    temp_server = TCPServer.new(ADDRESS, 0)
    port = temp_server.addr[1]
    temp_server.close # only frees Ruby resource, socket is in TIME_WAIT at OS level
    # so we can't have our adapter use it too quickly

    sleep(0.1)        # 'Wait' for temp_server to *really* close, not just TIME_WAIT
    port
  end