fix(test): error detection
This commit is contained in:
parent
42d2ae4aaa
commit
2d5ff2bd93
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue