You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the app test fails with error Assertion failed: MongoClient was not closed before deinitialization. Please call close() or syncClose() when the client is no longer needed#9
What version of Swift are you using? (Run swift --version) swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100) Target: arm64-apple-macosx13.0
What operating system are you using? (Run uname -a) Darwin thomass-macbook-pro.home 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
What versions of the driver and its dependencies are you using? (Run swift package show-dependencies)
What version of MongoDB are you using? (Check with the MongoDB shell using db.version()) 6.0.2
What is your MongoDB topology (standalone, replica set, sharded cluster, serverless)? standalone
Describe the bug
running the App test provided in the template by calling swift test ends up with the following error;
Building for debugging...
Build complete! (0.89s)
Test Suite 'All tests' started at 2023-04-09 09:24:37.824
Test Suite 'VaporExamplePackageTests.xctest' started at 2023-04-09 09:24:37.825
Test Suite 'AppTests' started at 2023-04-09 09:24:37.825
Test Case '-[AppTests.AppTests testFetchKittens]' started.
MongoSwift/MongoClient.swift:398: Assertion failed: MongoClient was not closed before deinitialization. Please call `close()` or `syncClose()` when the client is no longer needed.
error: Exited with signal code 5
BE SPECIFIC:
What is the expected behavior and what is actually happening?
Do you have any particular output that demonstrates this problem?
Do you have any ideas on why this may be happening that could give us a
clue in the right direction?
Did this issue arise out of nowhere, or after an update (of the driver,
server, and/or Swift)?
Are there multiple ways of triggering this bug (perhaps more than one
function produce a crash)?
If you know how to reproduce this bug, please include a code snippet here:
Versions/Environment
swift --version
)swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100) Target: arm64-apple-macosx13.0
uname -a
)Darwin thomass-macbook-pro.home 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64
swift package show-dependencies
)db.version()
)6.0.2
standalone
Describe the bug
running the App test provided in the template by calling
swift test
ends up with the following error;BE SPECIFIC:
clue in the right direction?
server, and/or Swift)?
function produce a crash)?
To Reproduce
Steps to reproduce the behavior:
[email protected]
swift test
The text was updated successfully, but these errors were encountered: