Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-482

Fix race in session pool tests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      We have a sessions test that checks that the pool is LIFO. However, due to the fact that we run operations in the TestClient constructor, there are sessions created previously that will only be returned to the pool after the completion of the task spawned by the session's Drop implementation, which might not happen until after one of the sessions in the LIFO tests is dropped.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: