-
Notifications
You must be signed in to change notification settings - Fork 25
Improve Docker configuration in the package #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
354b957
to
e566465
Compare
* Add FoundationNetworking imports for Linux support. * Remove autoreleasepool.
e566465
to
4122cff
Compare
client = try! MeiliSearch(host: "http://localhost:7700", apiKey: "masterKey", session: session) | ||
client = try! MeiliSearch(host: currentHost(), apiKey: "masterKey", session: session) | ||
|
||
let semaphore = XCTestExpectation(description: "Setup: delete all keys") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought XCTestExpectation
should be used for expectations only inside of test cases, but it seems to be the recommended way from Apple to do async operations in the setup/teardown hooks.
The weirdest issue is related to the multi-env problem. When I ran that old configuration on Mac no issue at all. But when I ran locally on Docker, I got flaky tests! 😮💨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still flacky tests in docker ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, as far as I know!
4122cff
to
4b02ac8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
This PR is auto-generated.
Add a basic Docker configuration based on this integration-guides issue.
ProcessInfo.processInfo.environment["MEILISEARCH_HOST"]