Skip to content

Commit

Permalink
[fix]init_test by updating the output channel for test
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Yang <ruiya@vmware.com>
  • Loading branch information
rhall-pivotal authored and Rui Yang committed Jun 19, 2024
1 parent 2a2b3e0 commit a49e70f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions acceptance/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package acceptance

import (
"fmt"
"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/onsi/gomega/ghttp"
"io/ioutil"
"net/http"
"os"
"os/exec"
"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"

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a49e70f

Please sign in to comment.