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