You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts
+10-15Lines changed: 10 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,13 @@ import {
4
4
assertion,
5
5
authDefault,
6
6
Cleanup,
7
+
createTmpDir,
7
8
ensureAsync,
8
9
generateDbName,
9
10
getHost,
10
11
isNullOrUndefined,
11
12
ManagerAdvanced,
13
+
removeDir,
12
14
statPath,
13
15
uriTemplate,
14
16
}from'./util/utils';
@@ -29,14 +31,11 @@ import {
29
31
StateError,
30
32
WaitForPrimaryTimeoutError,
31
33
}from'./util/errors';
32
-
import*astmpfrom'tmp';
33
34
import{promisesasfs}from'fs';
34
35
import{resolve}from'path';
35
36
36
37
constlog=debug('MongoMS:MongoMemoryReplSet');
37
38
38
-
tmp.setGracefulCleanup();
39
-
40
39
// "setImmediate" is used to ensure the functions are async, otherwise the process might evaluate the one function before other async functions (like "start")
41
40
// and so skip to next state check or return before actually ready
0 commit comments