Skip to content

Commit 1c10e1b

Browse files
authored
Fix two mistakes in next test instance classes (vercel#67633)
This is a quick follow-up from vercel#67601: - avoid floating promise in `NextDevInstance#deleteFile` - fix nesting in `NextInstance#stop`
1 parent 1c1d93e commit 1c10e1b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/lib/next-modes/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ export class NextInstance {
394394
this.childProcess.kill('SIGKILL')
395395
await exitPromise
396396
this.childProcess = undefined
397+
this.isStopping = false
397398
require('console').log(`Stopped next server`)
398399
}
399-
this.isStopping = false
400400
}
401401

402402
public async destroy(): Promise<void> {

test/lib/next-modes/next-dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class NextDevInstance extends NextInstance {
195195

196196
public override async deleteFile(filename: string) {
197197
await this.handleDevWatchDelayBeforeChange(filename)
198-
super.deleteFile(filename)
198+
await super.deleteFile(filename)
199199
await this.handleDevWatchDelayAfterChange(filename)
200200
}
201201
}

0 commit comments

Comments
 (0)