From a49e70fbda050414c3be93562e2f27723a6cfb12 Mon Sep 17 00:00:00 2001 From: Ryan Hall Date: Wed, 19 Jun 2024 07:47:02 -0400 Subject: [PATCH] [fix]init_test by updating the output channel for test Signed-off-by: Rui Yang --- acceptance/init_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/acceptance/init_test.go b/acceptance/init_test.go index 09126aea..8f8e4308 100644 --- a/acceptance/init_test.go +++ b/acceptance/init_test.go @@ -2,9 +2,6 @@ package acceptance import ( "fmt" - "github.com/onsi/gomega/gbytes" - "github.com/onsi/gomega/gexec" - "github.com/onsi/gomega/ghttp" "io/ioutil" "net/http" "os" @@ -12,6 +9,10 @@ import ( "regexp" "strings" + "github.com/onsi/gomega/gbytes" + "github.com/onsi/gomega/gexec" + "github.com/onsi/gomega/ghttp" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -41,9 +42,10 @@ var _ = SynchronizedBeforeSuite(func() []byte { "TERM=xterm-256color", } minio, err = gexec.Start(command, GinkgoWriter, GinkgoWriter) + Expect(err).ToNot(HaveOccurred()) - Eventually(minio.Out, "10s").Should(gbytes.Say("API:")) + Eventually(minio.Err, "10s").Should(gbytes.Say("API:")) runCommand("mc", "--debug", "config", "host", "add", "testing", "http://127.0.0.1:9001", "minio", "password") } return []byte(omPath)