From 2c953a1da81d62fcc7106cd830fa0f5284353176 Mon Sep 17 00:00:00 2001 From: Jenna Goldstrich Date: Fri, 26 Mar 2021 21:19:16 +0000 Subject: [PATCH] Get rid of race condition in scale command int test This test just runs cf scale appName and prints the current state of the app without actually updating it, it still might display 0/0 memory depending on the state of CAPI after the push. Since this comes from log cache there could be a delay Co-authored-by: Jenna Goldstrich Co-authored-by: Seth Boyles --- integration/v7/isolated/scale_command_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/v7/isolated/scale_command_test.go b/integration/v7/isolated/scale_command_test.go index af06058fdbf..b43f370d3a5 100644 --- a/integration/v7/isolated/scale_command_test.go +++ b/integration/v7/isolated/scale_command_test.go @@ -125,8 +125,8 @@ var _ = Describe("scale command", func() { Expect(processSummary.InstanceCount).To(Equal("1/1")) instanceSummary := processSummary.Instances[0] - Expect(instanceSummary.Memory).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+[KMG]`)) - Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+[KMG]`)) + Expect(instanceSummary.Memory).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+?[KMG]?`)) + Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+?[KMG]?`)) Expect(appTable.Processes[1].Type).To(Equal("console")) Expect(appTable.Processes[1].InstanceCount).To(Equal("0/0"))