From 1a8002052c1bb1717dee4424bcd0666271bae526 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Mon, 2 Sep 2024 12:14:31 +0800 Subject: [PATCH] fix: wrong sign tests --- internal/core/plugin_packager/packager_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/core/plugin_packager/packager_test.go b/internal/core/plugin_packager/packager_test.go index 8cdc511..ec3f842 100644 --- a/internal/core/plugin_packager/packager_test.go +++ b/internal/core/plugin_packager/packager_test.go @@ -93,6 +93,11 @@ func TestWrongSign(t *testing.T) { return } + if err := os.WriteFile("temp/neko.yaml", neko, 0644); err != nil { + t.Errorf("failed to write neko: %s", err.Error()) + return + } + origin_decoder, err := decoder.NewFSPluginDecoder("temp") if err != nil { t.Errorf("failed to create decoder: %s", err.Error())