Skip to content

Commit 33402d2

Browse files
author
John Kleinschmidt
committed
Try to resolve bad exit code on GPUInfo test
1 parent 56f2aa4 commit 33402d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/fixtures/api/gpu-info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ app.on('ready', () => {
66
const infoType = process.argv.pop()
77
app.getGPUInfo(infoType).then(
88
(gpuInfo) => {
9-
console.log(JSON.stringify(gpuInfo))
10-
app.exit(0)
9+
setImmediate(() => {
10+
console.log(JSON.stringify(gpuInfo))
11+
app.exit(0)
12+
})
1113
},
1214
(error) => {
1315
console.error(error)

0 commit comments

Comments
 (0)