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' } })
|
cp.handle_command({ fargs = { 'prev' } })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- assert.has_no_errors(function()
|
assert.has_no_errors(function()
|
||||||
-- cp.handle_command({ fargs = { 'run' } })
|
cp.handle_command({ fargs = { 'run' } })
|
||||||
-- end)
|
end)
|
||||||
|
|
||||||
local has_validation_error = false
|
local has_validation_error = false
|
||||||
local has_appropriate_errors = 0
|
local has_appropriate_errors = 0
|
||||||
|
|
@ -210,7 +210,8 @@ describe('Error boundary handling', function()
|
||||||
local missing_contest_errors = 0
|
local missing_contest_errors = 0
|
||||||
for _, log_entry in ipairs(logged_messages) do
|
for _, log_entry in ipairs(logged_messages) do
|
||||||
if
|
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
|
then
|
||||||
missing_contest_errors = missing_contest_errors + 1
|
missing_contest_errors = missing_contest_errors + 1
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue