Fix tasks test
This commit is contained in:
10
src/tasks.js
10
src/tasks.js
@@ -38,10 +38,10 @@ exports = module.exports = {
|
||||
ETIMEOUT: 'timeout',
|
||||
|
||||
// testing
|
||||
_TASK_IDENTITY: '_identity',
|
||||
_TASK_CRASH: '_crash',
|
||||
_TASK_ERROR: '_error',
|
||||
_TASK_SLEEP: '_sleep'
|
||||
_TASK_IDENTITY: 'identity',
|
||||
_TASK_CRASH: 'crash',
|
||||
_TASK_ERROR: 'error',
|
||||
_TASK_SLEEP: 'sleep'
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
@@ -193,7 +193,7 @@ async function startTask(id, options) {
|
||||
return task.result;
|
||||
}
|
||||
|
||||
assert.ok(sudoError, 'sudo should have errorred because task did not complete!');
|
||||
assert.ok(sudoError, 'sudo should have errored because task did not complete!');
|
||||
|
||||
// taskworker.sh forwards the exit code of the actual worker. It's either a raw signal number OR the exit code
|
||||
let taskError = null;
|
||||
|
||||
Reference in New Issue
Block a user