0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00
mongodb/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}));
}