Skip to content

Commit c8989f4

Browse files
committed
chore: fix test cases for oauth_test.go
1 parent e0be2fc commit c8989f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/oauth/v2/oauth_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ var _ = Describe("Oauth", func() {
354354
Expect(statusCode).To(Equal(http.StatusInternalServerError))
355355
expectedResponse := &v2.AuthResponse{
356356
Err: "timeout",
357-
ErrorMessage: "mock mock 127.0.0.1:1234->127.0.0.1:12340: read: operation timed out",
357+
ErrorMessage: "mock mock 127.0.0.1:1234->127.0.0.1:12340: read: connection timed out",
358358
}
359359
Expect(response).To(Equal(expectedResponse))
360-
Expect(err).To(MatchError(fmt.Errorf("error occurred while fetching/refreshing account info from CP: mock mock 127.0.0.1:1234->127.0.0.1:12340: read: operation timed out")))
360+
Expect(err).To(MatchError(fmt.Errorf("error occurred while fetching/refreshing account info from CP: mock mock 127.0.0.1:1234->127.0.0.1:12340: read: connection timed out")))
361361
})
362362
})
363363

@@ -573,10 +573,10 @@ var _ = Describe("Oauth", func() {
573573
Expect(statusCode).To(Equal(http.StatusInternalServerError))
574574
expectedResponse := &v2.AuthResponse{
575575
Err: "timeout",
576-
ErrorMessage: "mock mock 127.0.0.1:1234->127.0.0.1:12340: read: operation timed out",
576+
ErrorMessage: "mock mock 127.0.0.1:1234->127.0.0.1:12340: read: connection timed out",
577577
}
578578
Expect(response).To(Equal(expectedResponse))
579-
Expect(err).To(MatchError(fmt.Errorf("error occurred while fetching/refreshing account info from CP: mock mock 127.0.0.1:1234->127.0.0.1:12340: read: operation timed out")))
579+
Expect(err).To(MatchError(fmt.Errorf("error occurred while fetching/refreshing account info from CP: mock mock 127.0.0.1:1234->127.0.0.1:12340: read: connection timed out")))
580580
})
581581

582582
It("refreshToken function call when stored cache is same as provided secret and cpApiCall returns a failed response because of faulty implementation in some downstream service", func() {

0 commit comments

Comments
 (0)