Disable metrics serving in proxy tests (#2307)

This commit is contained in:
Francesco Renzi
2023-02-22 16:57:59 +00:00
committed by GitHub
parent 9b44f0051c
commit 73e22a1756
5 changed files with 12 additions and 10 deletions

View File

@@ -143,7 +143,8 @@ func SetupDeploymentTest(ctx2 context.Context) *corev1.Namespace {
Expect(err).NotTo(HaveOccurred(), "failed to create test namespace")
mgr, err := ctrl.NewManager(cfg, ctrl.Options{
Namespace: ns.Name,
Namespace: ns.Name,
MetricsBindAddress: "0",
})
Expect(err).NotTo(HaveOccurred(), "failed to create manager")
@@ -180,7 +181,6 @@ var _ = Context("Inside of a new namespace", func() {
ns := SetupDeploymentTest(ctx)
Describe("when no existing resources exist", func() {
It("should create a new RunnerReplicaSet resource from the specified template, add a another RunnerReplicaSet on template modification, and eventually removes old runnerreplicasets", func() {
name := "example-runnerdeploy-1"
@@ -491,6 +491,5 @@ var _ = Context("Inside of a new namespace", func() {
time.Second*1, time.Millisecond*500).Should(Not(BeNil()))
}
})
})
})