Fix hijack unit tests
error statement changed to start with a lower-case character
@@ -249,7 +249,7 @@ var _ = Describe("hijackStreamer", func() {
Expect(fakeHijackCloser).NotTo(BeNil())
Expect(hijackError).To(HaveOccurred())
Expect(fakeBody.CloseCallCount()).To(Equal(1))
- Expect(hijackError).To(MatchError(fmt.Errorf("Backend error: Exit status: %d, message: %s", httpResp.StatusCode, "some-error")))
+ Expect(hijackError).To(MatchError(fmt.Errorf("backend error: Exit status: %d, message: %s", httpResp.StatusCode, "some-error")))
Expect(fakeHijackCloser.CloseCallCount()).To(Equal(1))
})
})
@@ -298,7 +298,7 @@ var _ = Describe("hijackStreamer", func() {
Expect(fakeHijackCloser).NotTo(BeNil())
Expect(hijackError).To(HaveOccurred())
Expect(fakeBody.CloseCallCount()).To(Equal(1))
- Expect(hijackError).To(MatchError(fmt.Errorf("Backend error: Exit status: %d, error reading response body: %s", httpResp.StatusCode, "error reading")))
+ Expect(hijackError).To(MatchError(fmt.Errorf("backend error: Exit status: %d, error reading response body: %s", httpResp.StatusCode, "error reading")))
Expect(fakeHijackCloser.CloseCallCount()).To(Equal(1))
})
})
