Skip to content

Commit 66d884c

Browse files
committed
Revert "Fix random tests failures on windows"
This reverts commit 18378f9.
1 parent 81e562a commit 66d884c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/archivist/recorder/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ export default class Recorder {
1212
return Promise.all([ this.versionsRepository.initialize(), this.snapshotsRepository.initialize() ]);
1313
}
1414

15-
async finalize() {
16-
// Close repositories sequentially to avoid race conditions when both repositories use the same MongoDB connection (same server/database).
17-
// Parallel closing can cause "Operation interrupted because client was closed" errors, especially on Windows.
18-
await this.versionsRepository.finalize();
19-
await this.snapshotsRepository.finalize();
15+
finalize() {
16+
return Promise.all([ this.versionsRepository.finalize(), this.snapshotsRepository.finalize() ]);
2017
}
2118

2219
getLatestSnapshot(terms, sourceDocumentId) {

0 commit comments

Comments
 (0)