mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 08:50:49 -06:00
26 lines
503 B
Go
26 lines
503 B
Go
package task_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
|
mRegistry "go-micro.dev/v4/registry"
|
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
func init() {
|
|
r := registry.GetRegistry(registry.Inmemory())
|
|
service := registry.BuildGRPCService("com.owncloud.api.gateway", "", "", "")
|
|
service.Nodes = []*mRegistry.Node{{
|
|
Address: "any",
|
|
}}
|
|
|
|
_ = r.Register(service)
|
|
}
|
|
func TestTask(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Task Suite")
|
|
}
|