Skip to content

TOOLS-4278 Convert mongodump oplog, query and view tests to testify - #1087

Draft
autarch wants to merge 1 commit into
TOOLS-4278-convey-to-testify-mongodump-1from
TOOLS-4278-convey-to-testify-mongodump-2
Draft

TOOLS-4278 Convert mongodump oplog, query and view tests to testify#1087
autarch wants to merge 1 commit into
TOOLS-4278-convey-to-testify-mongodump-1from
TOOLS-4278-convey-to-testify-mongodump-2

Conversation

@autarch

@autarch autarch commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Converts eight more functions in mongodump_test.go, leaving only
TestFailDuringResharding on GoConvey, so the dot-import stays one more
change.

The five Reset calls become t.Cleanup registered where each one fired.
The two view tests collapse from three Convey levels to one subtest
level, with their shared setup extracted into helpers that register the
teardown themselves.

Counts that come back as int64 from the profiler are checked with Zero
rather than compared against an untyped 0. Testify compares types, so an
Equal or NotEqual against 0 there would be decided by the type
difference rather than the value.

TestMongoDumpTOOLS2498 still fails on the same failpoint lookup as
before this change, and TestMongoDumpOplog is still skipped for
TOOLS-2657, so its 17 assertions were converted without ever running.

86 assertions before and after. No behavior change.

Converts eight more functions in mongodump_test.go, leaving only
TestFailDuringResharding on GoConvey, so the dot-import stays one more
change.

The five Reset calls become t.Cleanup registered where each one fired.
The two view tests collapse from three Convey levels to one subtest
level, with their shared setup extracted into helpers that register the
teardown themselves.

Counts that come back as int64 from the profiler are checked with Zero
rather than compared against an untyped 0. Testify compares types, so an
Equal or NotEqual against 0 there would be decided by the type
difference rather than the value.

TestMongoDumpTOOLS2498 still fails on the same failpoint lookup as
before this change, and TestMongoDumpOplog is still skipped for
TOOLS-2657, so its 17 assertions were converted without ever running.

86 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