Skip to content

TOOLS-4278 Convert mongofiles write concern tests to testify - #1084

Draft
autarch wants to merge 1 commit into
TOOLS-4278-convey-to-testify-mongorestore-main-2bfrom
TOOLS-4278-convey-to-testify-mongofiles-1
Draft

TOOLS-4278 Convert mongofiles write concern tests to testify#1084
autarch wants to merge 1 commit into
TOOLS-4278-convey-to-testify-mongorestore-main-2bfrom
TOOLS-4278-convey-to-testify-mongofiles-1

Conversation

@autarch

@autarch autarch commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Converts TestDefaultWriteConcern's two Convey blocks to subtests.
TestValidArguments above it was already testify, and
TestMongoFilesCommands below it stays on GoConvey for now, so the
dot-import remains.

runPutIDTestCase sits just after this function in the file but is called
only from TestMongoFilesCommands, so it is left for that conversion
rather than taken by line position.

This test already fails, before and after: it compares
mf.ToolOptions.WriteConcern, a *wcwrapper.WriteConcern, against
writeconcern.Majority(), which returns a *writeconcern.WriteConcern. The
two can never be deeply equal regardless of the values inside. The
failure is preserved exactly and recorded for follow-up.

4 assertions before and after. No behavior change.

Converts TestDefaultWriteConcern's two Convey blocks to subtests.
TestValidArguments above it was already testify, and
TestMongoFilesCommands below it stays on GoConvey for now, so the
dot-import remains.

runPutIDTestCase sits just after this function in the file but is called
only from TestMongoFilesCommands, so it is left for that conversion
rather than taken by line position.

This test already fails, before and after: it compares
mf.ToolOptions.WriteConcern, a *wcwrapper.WriteConcern, against
writeconcern.Majority(), which returns a *writeconcern.WriteConcern. The
two can never be deeply equal regardless of the values inside. The
failure is preserved exactly and recorded for follow-up.

4 assertions before and after. No behavior change.

autarch commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

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.

1 participant