提交 411373ea 编写于 作者: L liqingping

test: resolve bug for unit test of master port

上级 04ca6799
......@@ -377,6 +377,11 @@ var _ = Describe("Server Test", func() {
portCount := 0
for _, svc := range svcs.Items {
portCount += len(svc.Spec.Ports)
for _, port := range svc.Spec.Ports {
if port.Name == "master-port" {
portCount--
}
}
}
Expect(portCount).Should(Equal(c.expectedDDPLSvcPorts))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册