Fix the UT failure
@@ -206,6 +206,9 @@ var _ = Describe("'Instance' service", func() {
resp, err = instanceResource.Register(getContext(), &pb.RegisterInstanceRequest{
Instance: &pb.MicroServiceInstance{
ServiceId: serviceId1,
+ Endpoints: []string{
+ "checkpull:127.0.0.1:8080",
+ },
HostName: "UT-HOST",
Status: pb.MSI_UP,
HealthCheck: &pb.HealthCheck{
@@ -222,6 +225,9 @@ var _ = Describe("'Instance' service", func() {
resp, err = instanceResource.Register(getContext(), &pb.RegisterInstanceRequest{
Instance: &pb.MicroServiceInstance{
ServiceId: serviceId1,
+ Endpoints: []string{
+ "checkpush:127.0.0.1:8080",
+ },
HostName: "UT-HOST",
Status: pb.MSI_UP,
HealthCheck: &pb.HealthCheck{
@@ -239,6 +245,9 @@ var _ = Describe("'Instance' service", func() {
resp, err = instanceResource.Register(getContext(), &pb.RegisterInstanceRequest{
Instance: &pb.MicroServiceInstance{
ServiceId: serviceId1,
+ Endpoints: []string{
+ "checkpush:127.0.0.1:8081",
+ },
HostName: "UT-HOST",
Status: pb.MSI_UP,
HealthCheck: &pb.HealthCheck{
@@ -255,6 +264,9 @@ var _ = Describe("'Instance' service", func() {
resp, err = instanceResource.Register(getContext(), &pb.RegisterInstanceRequest{
Instance: &pb.MicroServiceInstance{
ServiceId: serviceId1,
+ Endpoints: []string{
+ "checkpull:127.0.0.1:8081",
+ },
HostName: "UT-HOST",
Status: pb.MSI_UP,
HealthCheck: &pb.HealthCheck{
