Fix tasks test

This commit is contained in:
Girish Ramakrishnan
2025-07-18 20:55:46 +02:00
parent 3da1bae826
commit 4f608bdc5f
3 changed files with 14 additions and 12 deletions

View File

@@ -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;