From 2f1ec093ba072202036bd9a4490742b5d3a441fc Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 23 Jan 2023 20:12:23 -0800 Subject: [PATCH] rename --- app.lua | 2 +- live.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.lua b/app.lua index 41c7d51..20f1fd3 100644 --- a/app.lua +++ b/app.lua @@ -463,7 +463,7 @@ function record_error_with_heuristic_location(test_name, err) end -- Test_errors will be a table by test name -function record_error_with_stack_trace(test_name, err) +function record_error_by_test(test_name, err) local err_without_line_number = err:gsub('^[^:]*:[^:]*: ', '') Test_errors[test_name] = debug.traceback(err_without_line_number) end diff --git a/live.lua b/live.lua index 4907fb6..156a13e 100644 --- a/live.lua +++ b/live.lua @@ -281,7 +281,7 @@ function live.run(buf) -- run all tests local globals = live.shallow_copy_all_globals() Test_errors = {} - App.run_tests(record_error_with_stack_trace) + App.run_tests(record_error_by_test) live.send_to_driver(json.encode(Test_errors)) live.restore_all_globals(globals) end