From ddf5aaed04a15eb987ccbeca7a08b7071b3f7f65 Mon Sep 17 00:00:00 2001 From: Jensen Date: Tue, 10 Mar 2026 19:01:51 +0800 Subject: [PATCH] fix(test): relax locale-dependent assertion in format_time test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove hardcoded colon check that fails on non-English locales where os.date('%X') returns formats like '15时30分' instead of '15:30:00'. --- tests/unit/util_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/util_spec.lua b/tests/unit/util_spec.lua index 9c47cb34..42e83d22 100644 --- a/tests/unit/util_spec.lua +++ b/tests/unit/util_spec.lua @@ -190,7 +190,7 @@ describe('util.format_time', function() assert.is_not_nil(result) assert.is_string(result) - assert.is_true(result:find(':', 1, true) ~= nil) + assert.is_true(#result > 0) end) it('does not convert regular second timestamps', function()