mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
ensure old tests can exit properly on using the new closeAllWatchers
This commit is contained in:
@@ -172,6 +172,13 @@ makeGlobalAsyncLocalStorage().run(
|
||||
|
||||
// Allow the process to exit normally, since optimistic file watchers
|
||||
// may be keeping the event loop busy.
|
||||
safeWatcher.closeAllWatchers();
|
||||
safeWatcher.closeAllWatchers()
|
||||
.then(() => {
|
||||
process.exit(0);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(`Error closing watchers:`, err);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
@@ -200,6 +200,13 @@ makeGlobalAsyncLocalStorage().run(
|
||||
|
||||
// Allow the process to exit normally, since optimistic file watchers
|
||||
// may be keeping the event loop busy.
|
||||
safeWatcher.closeAllWatchers();
|
||||
safeWatcher.closeAllWatchers()
|
||||
.then(() => {
|
||||
process.exit(0);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(`Error closing watchers:`, err);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user