fix(health): simplify health check

This commit is contained in:
Barrett Ruth 2025-09-30 19:49:10 -04:00
parent 02019dbdef
commit dc4326524c
7 changed files with 14 additions and 53 deletions

View file

@ -559,7 +559,7 @@ describe('cp command parsing', function()
package.loaded['cp.cache'] = nil
end)
it('completes platforms and global actions when no contest context', function()
it('completes platforms and global actions without contest configuration', function()
local result = complete_fn('', 'CP ', 3)
assert.is_table(result)

View file

@ -186,7 +186,7 @@ describe('Error boundary handling', function()
has_validation_error = true
elseif
log_entry.msg
and (log_entry.msg:match('no contest set') or log_entry.msg:match('No contest configured'))
and (log_entry.msg:match('No platform ') or log_entry.msg:match('No contest '))
then
has_appropriate_errors = has_appropriate_errors + 1
end