Skip to content

Commit

Permalink
Fix the failing TestRayJobSubmissionRest test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripetrlik authored and openshift-merge-robot committed Sep 6, 2023
1 parent 3e707bc commit f1ca5c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/ray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package integration

import (
"encoding/base64"
"net/http"
"net/url"
"testing"

Expand Down Expand Up @@ -168,6 +169,12 @@ func TestRayJobSubmissionRest(t *testing.T) {
test.Expect(err).NotTo(HaveOccurred())
dashboardHostname := dashboard.Status.Ingress[0].Host

// Wait for 200 reply from dashboard route
test.Eventually(func() int {
resp, _ := http.Get("http://" + dashboardHostname)
return resp.StatusCode
}, support.TestTimeoutLong).Should(Equal(200))

rayClient := support.NewRayClusterClient(url.URL{Scheme: "http", Host: dashboardHostname})

// Create Ray Job using REST API
Expand Down

0 comments on commit f1ca5c8

Please sign in to comment.