From 2cbd8efffa17ead8915bd6d577f3b0387bc5b7ca Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 5 Jul 2025 22:46:25 +0800 Subject: [PATCH] test: update color conversion tests for new calculation logic - Update expected output values in color conversion tests to reflect new color calculation logic Signed-off-by: appleboy --- plugin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index 22c992d..2cf1f48 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -116,8 +116,8 @@ func TestColorConversion(t *testing.T) { expectedFall int }{ {"valid hex", "#ffaa00", 16755200, "success", 1752220}, - {"invalid hex", "not-a-hex", 0, "failure", 16724530}, - {"status success", "", 0, "success", 1752220}, + {"invalid hex", "not-a-hex", 16724530, "failure", 16724530}, + {"status success", "", 0, "success", 1754624}, {"status failure", "", 0, "failure", 16724530}, {"status killed", "", 0, "killed", 16724530}, {"status default", "", 0, "running", 16767280},