Skip to content

Commit 7022cf5

Browse files
authored
Add test log init (#971)
1 parent 6cf46ce commit 7022cf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service/other_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ package service
33
import (
44
"testing"
55

6+
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
67
"go.uber.org/goleak"
78
)
89

910
func TestSearch(t *testing.T) {
11+
logger.LogInitConsoleOnly()
1012
goleak.VerifyNone(t)
1113

1214
if d, e := NewOtherService().Search("test"); e != nil || d == nil {

0 commit comments

Comments
 (0)