CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Add test log init (#971)
link7022cf5d29d8
diff --git a/service/other_test.go b/service/other_test.goindex 700ac3b..f74c5b5 100644--- a/service/other_test.go+++ b/service/other_test.go@@ -3,10 +3,12 @@ package serviceimport ("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 {