From dfb821e11d9f5c952af5eb1e5788f14a61107868 Mon Sep 17 00:00:00 2001 From: Dmitry Rybakov Date: Fri, 1 Nov 2024 11:21:34 +0100 Subject: [PATCH] Fix failing tests --- .github/workflows/test.yml | 16 ++++++++-------- spec/mongo/error/pool_cleared_error_spec.rb | 4 +++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3f468fe8b..7144427790 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,33 +16,33 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04 ] - ruby: ["2.7", "3.0", "3.1", "3.2"] - mongodb: ["3.6", "4.4", "5.0", "6.0", "7.0"] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"] + mongodb: ["4.4", "5.0", "6.0", "7.0", "8.0"] topology: [replica_set, sharded_cluster] include: - os: macos ruby: "2.7" - mongodb: "5.0" + mongodb: "7.0" topology: server - os: macos ruby: "3.0" - mongodb: "5.0" + mongodb: "7.0" topology: server - os: ubuntu-latest ruby: "2.7" - mongodb: "5.0" + mongodb: "7.0" topology: server - os: ubuntu-latest ruby: "3.1" - mongodb: "5.0" + mongodb: "7.0" topology: server - os: ubuntu-latest ruby: "3.2" - mongodb: "5.0" + mongodb: "7.0" topology: server - os: ubuntu-latest ruby: "3.2" - mongodb: "6.0" + mongodb: "8.0" topology: replica_set steps: - name: repo checkout diff --git a/spec/mongo/error/pool_cleared_error_spec.rb b/spec/mongo/error/pool_cleared_error_spec.rb index f45b016c5e..38a3d6a9e3 100644 --- a/spec/mongo/error/pool_cleared_error_spec.rb +++ b/spec/mongo/error/pool_cleared_error_spec.rb @@ -5,7 +5,9 @@ describe Mongo::Error::PoolClearedError do describe '#initialize' do let(:error) do - described_class.new(double('address'), double('pool')) + described_class.new( + instance_double(Mongo::Address), instance_double(Mongo::Server::ConnectionPool) + ) end it 'appends TransientTransactionError' do