From ef4ba2ea60999716cc90c7b82b60818ab7ba3955 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Wed, 22 Mar 2023 06:05:59 +0000 Subject: [PATCH] Add test log init --- service/other_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/other_test.go b/service/other_test.go index 700ac3b..f74c5b5 100644 --- a/service/other_test.go +++ b/service/other_test.go @@ -3,10 +3,12 @@ package service import ( "testing" + "github.com/IceWhaleTech/CasaOS-Common/utils/logger" "go.uber.org/goleak" ) func TestSearch(t *testing.T) { + logger.LogInitConsoleOnly() goleak.VerifyNone(t) if d, e := NewOtherService().Search("test"); e != nil || d == nil {