Add test log init

This commit is contained in:
LinkLeong 2023-03-22 06:05:59 +00:00
parent 6cf46ce50c
commit ef4ba2ea60

View File

@ -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 {