1
Fork 0

Remove test errors from scanner

This commit is contained in:
viktorstrate 2019-08-23 00:47:29 +02:00
parent fa063d3363
commit 25a00e93f1
1 changed files with 0 additions and 19 deletions

View File

@ -34,15 +34,6 @@ async function _execScan(scanner, scanFunction) {
},
})
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
scannerStatusUpdate: {
progress: 0,
finished: false,
success: false,
message: 'Dummy error',
},
})
console.log('Calling scan function')
await scanFunction()
console.log('Scan function ended')
@ -61,16 +52,6 @@ async function _execScan(scanner, scanFunction) {
} photos`,
},
})
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {
scannerStatusUpdate: {
progress: 0,
finished: false,
success: false,
message:
'Another dummy error, that is very long, and wraps multiple lines. Theirefore it is longer yay',
},
})
} catch (e) {
console.error(`SCANNER ERROR: ${e.message}\n${e.stack}`)
scanner.pubsub.publish(EVENT_SCANNER_PROGRESS, {