fix(test): error detection

This commit is contained in:
Barrett Ruth 2025-09-27 10:16:55 -04:00
parent 42d2ae4aaa
commit 2d5ff2bd93

View file

@ -175,9 +175,9 @@ describe('Error boundary handling', function()
cp.handle_command({ fargs = { 'prev' } })
end)
-- assert.has_no_errors(function()
-- cp.handle_command({ fargs = { 'run' } })
-- end)
assert.has_no_errors(function()
cp.handle_command({ fargs = { 'run' } })
end)
local has_validation_error = false
local has_appropriate_errors = 0
@ -210,7 +210,8 @@ describe('Error boundary handling', function()
local missing_contest_errors = 0
for _, log_entry in ipairs(logged_messages) do
if
log_entry.msg and (log_entry.msg:match('no contest') or log_entry.msg:match('No contest'))
log_entry.msg
and (log_entry.msg:match('No problem found') or log_entry.msg:match('No contest'))
then
missing_contest_errors = missing_contest_errors + 1
end