@@ -62,7 +62,7 @@ describe('Launcher', () => {
62
62
63
63
chromeInstance . prepare ( ) ;
64
64
65
- await chromeInstance . destroyTmp ( ) ;
65
+ chromeInstance . destroyTmp ( ) ;
66
66
assert . strictEqual ( fs . rmdirSync . callCount , 0 ) ;
67
67
assert . strictEqual ( fs . rmSync . callCount , 0 ) ;
68
68
} ) ;
@@ -105,7 +105,7 @@ describe('Launcher', () => {
105
105
const chromeInstance = new Launcher ( { } , { fs : fs as any } ) ;
106
106
107
107
chromeInstance . prepare ( ) ;
108
- await chromeInstance . destroyTmp ( ) ;
108
+ chromeInstance . destroyTmp ( ) ;
109
109
assert . strictEqual ( rmMock . callCount , 1 ) ;
110
110
} ) ;
111
111
@@ -149,14 +149,14 @@ describe('Launcher', () => {
149
149
it ( 'doesn\'t fail when killed twice' , async ( ) => {
150
150
const chromeInstance = new Launcher ( ) ;
151
151
await chromeInstance . launch ( ) ;
152
- await chromeInstance . kill ( ) ;
153
- await chromeInstance . kill ( ) ;
152
+ chromeInstance . kill ( ) ;
153
+ chromeInstance . kill ( ) ;
154
154
} ) . timeout ( 30 * 1000 ) ;
155
155
156
156
it ( 'doesn\'t fail when killing all instances' , async ( ) => {
157
157
await launch ( ) ;
158
158
await launch ( ) ;
159
- const errors = await killAll ( ) ;
159
+ const errors = killAll ( ) ;
160
160
assert . strictEqual ( errors . length , 0 ) ;
161
161
} ) ;
162
162
@@ -166,7 +166,7 @@ describe('Launcher', () => {
166
166
let pid = chromeInstance . pid ! ;
167
167
await chromeInstance . launch ( ) ;
168
168
assert . strictEqual ( pid , chromeInstance . pid ) ;
169
- await chromeInstance . kill ( ) ;
169
+ chromeInstance . kill ( ) ;
170
170
} ) ;
171
171
172
172
it ( 'gets all default flags' , async ( ) => {
0 commit comments