Files
mongo/jstests/libs/bulk_write_passthrough_runner.js
2023-09-14 14:34:43 +00:00

10 lines
290 B
JavaScript

const testFile = TestData.jsTestFile;
try {
await import(testFile);
} finally {
// Run a lightweight command to allow the override file to flush the remaining bulkWrite.
// Ensure this command runs even if the test errors.
assert.commandWorked(db.runCommand({ping: 1}));
}