Files
kratos-bootstrap/registry/eureka/client_creator_test.go
2025-06-02 11:53:18 +08:00

20 lines
349 B
Go

package eureka
import (
"testing"
"github.com/stretchr/testify/assert"
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
)
func TestNewEurekaRegistry(t *testing.T) {
cfg := conf.Registry{
Eureka: &conf.Registry_Eureka{
Endpoints: []string{"https://127.0.0.1:18761"},
},
}
reg := NewRegistry(&cfg)
assert.NotNil(t, reg)
}