From 2d5ff2bd93f2fb5748d24155d84b84cfb858e299 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 27 Sep 2025 10:16:55 -0400 Subject: [PATCH] fix(test): error detection --- spec/error_boundaries_spec.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/error_boundaries_spec.lua b/spec/error_boundaries_spec.lua index e113cee..65825db 100644 --- a/spec/error_boundaries_spec.lua +++ b/spec/error_boundaries_spec.lua @@ -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