🧪 test: 修复 macos 上 agent 注册偏慢的 test case
This commit is contained in:
parent
51a137411b
commit
c7c76efb37
@ -65,9 +65,11 @@ var _ = Describe("1 [基础测试]", func() {
|
|||||||
defer basicC.Stop()
|
defer basicC.Stop()
|
||||||
|
|
||||||
By("使用 goc service get 获取服务列表")
|
By("使用 goc service get 获取服务列表")
|
||||||
output, err = RunShortRunCmd([]string{"goc", "service", "get"}, dir, nil)
|
Eventually(func() {
|
||||||
Expect(err).To(BeNil(), "goc servive get 运行错误")
|
output, err = RunShortRunCmd([]string{"goc", "service", "get"}, dir, nil)
|
||||||
Expect(output).To(ContainSubstring("127.0.0.1 ./basic2"), "goc service get 输出应该包含 basic 服务")
|
Expect(err).To(BeNil(), "goc servive get 运行错误")
|
||||||
|
Expect(output).To(ContainSubstring("127.0.0.1 ./basic2"), "goc service get 输出应该包含 basic 服务")
|
||||||
|
}, 3*time.Second, 1*time.Second).Should(Succeed())
|
||||||
|
|
||||||
By("使用 goc profile get 获取覆盖率")
|
By("使用 goc profile get 获取覆盖率")
|
||||||
profileStr := `mode: count
|
profileStr := `mode: count
|
||||||
|
Loading…
Reference in New Issue
Block a user