Skip to content

Commit 79e6cf7

Browse files
committed
fix: dashboard http client tests discovered and passing
Signed-off-by: alimaazamat <[email protected]>
1 parent 530318b commit 79e6cf7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ray-operator/controllers/ray/utils/dashboardclient/dashboard_httpclient_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package dashboardclient
33
import (
44
"context"
55
"encoding/json"
6+
"errors"
67
"net/http"
78

89
"github.com/jarcoal/httpmock"
@@ -295,6 +296,6 @@ var _ = Describe("RayFrameworkGenerator", func() {
295296

296297
_, err := rayDashboardClient.GetServeDetails(context.TODO())
297298
Expect(err).To(HaveOccurred())
298-
Expect(err).To(Equal(context.DeadlineExceeded))
299+
Expect(errors.Is(err, context.DeadlineExceeded)).To(BeTrue())
299300
})
300301
})
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package utils_test
1+
package dashboardclient
22

33
import (
44
"testing"
@@ -7,7 +7,7 @@ import (
77
. "github.com/onsi/gomega"
88
)
99

10-
func TestUtils(t *testing.T) {
10+
func TestDashboardClient(t *testing.T) {
1111
RegisterFailHandler(Fail)
12-
RunSpecs(t, "Utils Suite")
12+
RunSpecs(t, "Dashboard Client Suite")
1313
}

0 commit comments

Comments
 (0)