From 9756c375964dd9f974b3d696311c9d473c4625dd Mon Sep 17 00:00:00 2001 From: Alan Moran Date: Wed, 28 Aug 2024 11:32:03 +0200 Subject: [PATCH] fix failing tests --- src/autoscaler/configutil/configutil_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/autoscaler/configutil/configutil_test.go b/src/autoscaler/configutil/configutil_test.go index 2f56e3430a..96a2eab05b 100644 --- a/src/autoscaler/configutil/configutil_test.go +++ b/src/autoscaler/configutil/configutil_test.go @@ -16,7 +16,6 @@ import ( var _ = Describe("Configutil", func() { Describe("VCAPConfiguration", func() { var vcapConfiguration *VCAPConfiguration - var vcapApplicationJson string var vcapServicesJson string var err error @@ -84,6 +83,10 @@ var _ = Describe("Configutil", func() { }) Describe("MaterializeDBFromService", func() { + BeforeEach(func() { + vcapApplicationJson = "" + vcapApplicationJson = `{}` + }) When("VCAP_SERVICES has relational db service bind to app", func() { When("when uri is wrong", func() {