Skip to content

Commit

Permalink
integration: wait for cluster in state
Browse files Browse the repository at this point in the history
In e2e e use WaitForClusterInState after `crc start` exits with 0 to
give time to the cluster to stabilize (all operators are reliably
up). This is also needed here before we login to the cluster.
  • Loading branch information
jsliacan committed Oct 2, 2023
1 parent 2c9fb6f commit 43c776a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"os/exec"
"runtime"

crcCmd "github.com/crc-org/crc/v2/test/extended/crc/cmd"
"github.com/crc-org/crc/v2/test/extended/util"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -62,6 +63,11 @@ var _ = Describe("", Serial, Ordered, Label("openshift-preset", "goproxy"), func
}
})

It("wait for cluster in Running state", func() {
err := crcCmd.WaitForClusterInState("running")
Expect(err).NotTo(HaveOccurred())
})

It("login to cluster using crc-admin context", func() {

err := util.AddOCToPath()
Expand Down

0 comments on commit 43c776a

Please sign in to comment.