mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-08 23:20:45 +08:00
Fix monitor test syntax after settleRun duration coverage.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8cc3bed5f1
commit
839660d12f
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ test('settleRun keeps running enter time and stamps exitedAt separately', () =>
|
|||
assert.ok(run.exitedAt > run.stateEnteredAt)
|
||||
})
|
||||
|
||||
test('labelsMatch any/all', () => {
|
||||
const job = { role: 'worker', task: 'theory', owner: 'alice' }
|
||||
assert.equal(labelsMatch(job, { role: 'worker', task: 'theory' }, 'all'), true)
|
||||
assert.equal(labelsMatch(job, { role: 'worker', owner: 'bob' }, 'all'), false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue