mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-06-16 05:55:33 +00:00
Add test log init (#971)
This commit is contained in:
parent
6cf46ce50c
commit
7022cf5d29
@ -3,10 +3,12 @@ package service
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
|
||||||
"go.uber.org/goleak"
|
"go.uber.org/goleak"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSearch(t *testing.T) {
|
func TestSearch(t *testing.T) {
|
||||||
|
logger.LogInitConsoleOnly()
|
||||||
goleak.VerifyNone(t)
|
goleak.VerifyNone(t)
|
||||||
|
|
||||||
if d, e := NewOtherService().Search("test"); e != nil || d == nil {
|
if d, e := NewOtherService().Search("test"); e != nil || d == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user