Skip to content

Conversation

@patrickfreed
Copy link
Contributor

This PR exposes the retryReads option on ClientOptions to the public API and introduces the retryable reads test runner. It also updates much of our general spec test runner to work with crud v2 test files. As part of that, the retryable writes runner was separated into its own thing.

@patrickfreed patrickfreed requested a review from kmahar October 23, 2019 16:45
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically LGTM, couple small things

func testRetryableReads() throws {
let skippedTestKeywords = [
"findOne",
"changeStream", // TODO: SWIFT-648: Unskip this test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so does libmongoc skip this test or how did they not catch this before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they run the test and apparently it passes. From talking with Kevin, it seems that maybe they're just not verifying all the results.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♀


func testRetryableReads() throws {
let skippedTestKeywords = [
"findOne",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recently opened SWIFT-643 about adding a findOne method, add a TODO here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@patrickfreed patrickfreed merged commit b059a1b into master Oct 28, 2019
@patrickfreed patrickfreed deleted the SWIFT-587/retryable-reads branch October 28, 2019 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants