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

CSOT: Adjust timeouts and increase test coverage #1383

Open
wants to merge 13 commits into
base: CSOT
Choose a base branch
from

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented May 6, 2024

Description

This PR introduces the following changes:

  • Timeout Adjustments: Some timeouts have been reduced to ensure tests pass in serverless configurations.
  • Additional Prose Tests: Added new prose tests to cover more scenarios.
  • Re-enabled ignored tests: Uncommented and re-enabled previously ignored tests.

JAVA-5104

@vbabanin vbabanin requested a review from rozza May 23, 2024 06:13
@vbabanin vbabanin marked this pull request as ready for review May 23, 2024 06:14
@vbabanin vbabanin changed the title Re-enable tests. CSOT: Re-enable tests. May 23, 2024
@vbabanin vbabanin changed the title CSOT: Re-enable tests. CSOT: Adjust timeouts and increase test coverage May 23, 2024
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.

Some questions

@@ -97,9 +100,6 @@
{
"name": "commitTransaction",
"object": "session",
"arguments": {
"timeoutMS": 500
Copy link
Member

Choose a reason for hiding this comment

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

Whats the reasoning for this change?

* Not a prose spec test. However, it is additional test case for better coverage.
*/
@Test
@DisplayName("Should refresh timeout for commit transaction")
Copy link
Member

Choose a reason for hiding this comment

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

How does this test check that the timeout is refreshed? Seems to just confirm that the second commit fail with MongoOperationTimeoutException?

@@ -1,5 +1,6 @@
{
"description": "timeoutMS behaves correctly for non-tailable cursors",
"comment": "Manually reduced blockTimeMS for tests to pass in serverless",
Copy link
Member

Choose a reason for hiding this comment

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

Wowzers

@@ -107,7 +105,6 @@ protected boolean isAsync() {
return true;
}

@Tag("setsFailPoint")
Copy link
Member

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants