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: activerecord_trilogy_adapter_test.rb
    path of file: ./repos/semian/test/adapters
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "test_helper"
require "semian/activerecord_trilogy_adapter"

module ActiveRecord
  module ConnectionAdapters
    class ActiveRecordTrilogyAdapterTest < Minitest::Test
      include BackgroundHelper

      ERROR_TIMEOUT 
    
      def test_resource_timeout_on_query
        adapter2 = trilogy_adapter

        @proxy.downstream(:latency, latency: 500).apply do
          background { adapter2.execute("SELECT 1 + 1;") }

          assert_raises(TrilogyAdapter::ResourceBusyError) do
            @adapter.query("SELECT 1 + 1;")
          end
        end
      end