Skip to content
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

Convert legacy retryable reads tests to unified format #1330

Merged
merged 2 commits into from May 16, 2024

Conversation

jyemin
Copy link
Contributor

@jyemin jyemin commented Mar 6, 2024

}

public static void customSkips(final String fileDescription, @SuppressWarnings("unused") final String testDescription) {
assumeFalse(fileDescription.equals("count"));
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps add a comment why these are skipped.

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

import org.bson.{ BsonArray, BsonDocument, BsonString }
import org.mongodb.scala.syncadapter.SyncMongoClient

class RetryableReadsTests(
Copy link
Member

Choose a reason for hiding this comment

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

Is there a unified test for Scala now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Given that Kotlin, Kotlin co-routine, and Scala are all thin wrappers around the Java-based drivers, I don't think it's worth it to test retryable reads against all of them, as all the logic that's being tested lives in driver-core and is well-tested by the test runners for sync and reactive drivers.

Comparing with the other unified tests, I see only UnifiedCrudTest for kotlin-coroutine and kotlin-sync, so this seems in line with previous decisions.

@jyemin jyemin requested a review from rozza May 15, 2024 15:46
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

LGTM

@jyemin jyemin merged commit 4a44a00 into mongodb:master May 16, 2024
59 checks passed
@jyemin jyemin deleted the j5344 branch May 16, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants