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
DRIVERS-2489 Properly skip createChangeStream tests on serverless #1346
Changes from 2 commits
f116979
7e2a7cb
3eebc1b
9777086
5f66680
2f7bcd7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
description: "retryable writes handshake failures" | ||
|
||
schemaVersion: "1.3" | ||
schemaVersion: "1.4" | ||
|
||
runOnRequirements: | ||
- minServerVersion: "4.2" | ||
|
@@ -51,6 +51,10 @@ tests: | |
# - Tests whether operation successfully retries the handshake and succeeds. | ||
{% for operation in operations %} | ||
- description: "{{operation.operation_name}} succeeds after retryable handshake network error" | ||
{%- if operation.operation_name == 'createChangeStream' %} | ||
runOnRequirements: | ||
- serverless: forbid | ||
{%- endif %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this just done for consistency? It seems unlikely that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Note, this was also why the retryable writes template file does not contain other change stream specific behavior such as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I did this without thinking. Removed. |
||
operations: | ||
- name: failPoint | ||
object: testRunner | ||
|
@@ -95,6 +99,10 @@ tests: | |
commandName: {{operation.command_name}} | ||
|
||
- description: "{{operation.operation_name}} succeeds after retryable handshake server error (ShutdownInProgress)" | ||
{%- if operation.operation_name == 'createChangeStream' %} | ||
runOnRequirements: | ||
- serverless: forbid | ||
{%- endif %} | ||
operations: | ||
- name: failPoint | ||
object: testRunner | ||
|
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 just found another problem with these tests. The createChangeStream test names are duplicated,
"createChangeStream succeeds after retryable handshake network error"
appears 3 times. This is a problem since test descriptions are expected to be unique within a file.