Browse Source

Add test log init (#971)

link 2 năm trước cách đây
mục cha
commit
7022cf5d29
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      service/other_test.go

+ 2 - 0
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 {