From 4967142cf2e328b95171670d2cb2782fdff20a64 Mon Sep 17 00:00:00 2001 From: Carson Long <12767276+ctlong@users.noreply.github.com> Date: Wed, 24 Jan 2024 09:52:41 -0800 Subject: [PATCH] chore: Remove duplicated cf CLI version output Stops output interception from also outputting the result of the `fmt.Println` statement. --- cats_suite_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cats_suite_test.go b/cats_suite_test.go index cd025f350..39c5097cc 100644 --- a/cats_suite_test.go +++ b/cats_suite_test.go @@ -70,7 +70,10 @@ var _ = SynchronizedBeforeSuite(func() []byte { installedVersion, err := GetInstalledCliVersionString() Expect(err).ToNot(HaveOccurred(), "Error trying to determine CF CLI version") + + PauseOutputInterception() fmt.Println("Running CATs with CF CLI version ", installedVersion) + ResumeOutputInterception() Expect(ParseRawCliVersionString(installedVersion).AtLeast(ParseRawCliVersionString(minCliVersion))).To(BeTrue(), "CLI version "+minCliVersion+" is required")