Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5621

Mongoid.disconnect_clients spec fails inside a docker container

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 9.0.0, 8.0.5, 8.1.1
    • Affects Version/s: None
    • Component/s: None
    • None

      When executing in Docker, there is a test failure:

        1) Mongoid.disconnect_clients disconnects from all active clients
           Failure/Error: expect(client.cluster).to receive(:disconnect!).and_call_original
           
             (#<Mongo::Cluster:0x7040 servers=[#<Mongo::Server:0x7100 address=localhost:27017 PRIMARY>, #<Mongo::Server:0x7120 address=localhost:27018 SECONDARY>] topology=ReplicaSetWithPrimary[localhost:27017,localhost:27018,localhost:27019,name=test-rs,v=1,e=7fffffff0000000000000001]>).disconnect!(*(any args))
                 expected: 1 time with any arguments
                 received: 0 times with any arguments
           # ./spec/mongoid_spec.rb:80:in `block (4 levels) in <top (required)>'
      
      

      This error is not reproducible without docker.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: