Skip to content

DRIVERS-2124: Remove tests for undefined _id values #1713

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

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Nov 1, 2024

The server does not allow _id values to be undefined, nor does it allow comparisons to undefined.

Follow-up to 83b2938
@jmikola jmikola requested a review from a team as a code owner November 1, 2024 13:21
@jmikola jmikola requested review from nbbeeken and removed request for a team November 1, 2024 13:21
@@ -95,75 +95,3 @@ tests:
object: *collection
arguments: {filter: *null_id_filter}
expectResult: 1

- description: inserting _id with type undefined via insertOne
Copy link
Member Author

Choose a reason for hiding this comment

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

@nbbeeken: I assume these failures were missed in the original PR because Node silently converts undefined to null. In any event, undefined was never in the original scope of DRIVERS-2124 so let's just forget about this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, exactly right, good catch thanks for fixing this so quick!

@jmikola jmikola merged commit 726af16 into mongodb:master Nov 1, 2024
5 checks passed
@jmikola jmikola deleted the drivers-2124 branch November 1, 2024 13:59
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.

2 participants