CasaOS/service/other_test.go

18 lines
314 B
Go
Raw Normal View History

package service
import (
"testing"
2023-03-22 06:07:01 +00:00
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
"go.uber.org/goleak"
)
func TestSearch(t *testing.T) {
2023-03-22 06:07:01 +00:00
logger.LogInitConsoleOnly()
goleak.VerifyNone(t)
if d, e := NewOtherService().Search("test"); e != nil || d == nil {
t.Error("then test search error", e)
}
}