Skip to content

Commit

Permalink
Correctly print CF CLI version
Browse files Browse the repository at this point in the history
STDOUT output of fmt is not captured by ginkgo and thus the version is not printed.
When using `GinkgoWriter` the message is captured correctly.
  • Loading branch information
johha committed Apr 5, 2024
1 parent a169a8b commit 9362a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cats_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var _ = SynchronizedBeforeSuite(func() []byte {
Expect(err).ToNot(HaveOccurred(), "Error trying to determine CF CLI version")

PauseOutputInterception()
fmt.Println("Running CATs with CF CLI version ", installedVersion)
fmt.Fprintf(GinkgoWriter, "Running CATs with CF CLI version %s\n", installedVersion)
ResumeOutputInterception()

Expect(ParseRawCliVersionString(installedVersion).AtLeast(ParseRawCliVersionString(minCliVersion))).To(BeTrue(), "CLI version "+minCliVersion+" is required")
Expand Down

0 comments on commit 9362a33

Please sign in to comment.