Skip to content

Commit

Permalink
test log line cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Lee <[email protected]>
  • Loading branch information
dave-gray101 committed Dec 17, 2024
1 parent 55a7ee4 commit df37c12
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/e2e-aio/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,13 @@ var _ = Describe("E2E test", func() {
Expect(err).To(BeNil())
Expect(serialized).ToNot(BeNil())

//GinkgoWriter.Printf("VAD Request Body JSON: %q\n", string(serialized))

vadEndpoint := apiEndpoint + "/vad"
GinkgoWriter.Printf("TEMPORARY vadEndpoint: %q\n", vadEndpoint)
resp, err := http.Post(vadEndpoint, "application/json", bytes.NewReader(serialized))
Expect(err).To(BeNil())
Expect(resp).ToNot(BeNil())

body, err := io.ReadAll(resp.Body)
Expect(err).ToNot(HaveOccurred())
GinkgoWriter.Printf("VAD Response Body JSON: %q\n", string(body))

Expect(resp.StatusCode).To(Equal(200))
deserializedResponse := schema.VADResponse{}
err = json.Unmarshal(body, &deserializedResponse)
Expand Down Expand Up @@ -289,15 +284,12 @@ var _ = Describe("E2E test", func() {
Expect(err).To(BeNil())
Expect(serialized).ToNot(BeNil())

GinkgoWriter.Printf("Reranker Request Body JSON: %q\n", string(serialized))

rerankerEndpoint := apiEndpoint + "/rerank"
resp, err := http.Post(rerankerEndpoint, "application/json", bytes.NewReader(serialized))
Expect(err).To(BeNil())
Expect(resp).ToNot(BeNil())
body, err := io.ReadAll(resp.Body)
Expect(err).ToNot(HaveOccurred())
GinkgoWriter.Printf("Reranker Response Body JSON: %q\n", string(body))
Expect(resp.StatusCode).To(Equal(200), fmt.Sprintf("body: %s, response: %+v", body, resp))

deserializedResponse := schema.JINARerankResponse{}
Expand Down

0 comments on commit df37c12

Please sign in to comment.