@@ -27,9 +27,7 @@ describe('e2e TLS', () => {
27
27
assert ( ( await fs . stat ( CRL_INCLUDING_SERVER ) ) . isFile ( ) ) ;
28
28
} ) ;
29
29
30
- afterEach ( async ( ) => {
31
- await TestShell . killall ( ) ;
32
- } ) ;
30
+ afterEach ( TestShell . cleanup ) ;
33
31
34
32
context ( 'for server < 4.2' , ( ) => {
35
33
skipIfEnvServerVersion ( '>= 4.2' ) ;
@@ -65,8 +63,10 @@ describe('e2e TLS', () => {
65
63
} ) ;
66
64
await shell . waitForPrompt ( ) ;
67
65
await shell . executeLine ( 'db.shutdownServer({ force: true })' ) ;
68
- await TestShell . killall ( ) ;
66
+ shell . kill ( ) ;
67
+ await shell . waitForExit ( ) ;
69
68
} ) ;
69
+ afterEach ( TestShell . cleanup ) ;
70
70
71
71
const server = startTestServer (
72
72
'not-shared' , '--hostname' , 'localhost' ,
@@ -166,8 +166,10 @@ describe('e2e TLS', () => {
166
166
} ) ;
167
167
await shell . waitForPrompt ( ) ;
168
168
await shell . executeLine ( 'db.shutdownServer({ force: true })' ) ;
169
- await TestShell . killall ( ) ;
169
+ shell . kill ( ) ;
170
+ await shell . waitForExit ( ) ;
170
171
} ) ;
172
+ afterEach ( TestShell . cleanup ) ;
171
173
172
174
const server = startTestServer (
173
175
'not-shared' , '--hostname' , 'localhost' ,
0 commit comments