Add test log init (#971)

This commit is contained in:
link 2023-03-22 14:07:01 +08:00 committed by GitHub
parent 6cf46ce50c
commit 7022cf5d29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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 {