Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Dec 14, 2024
1 parent 569477c commit 9ddfa64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestHTTPConnector_authentication(t *testing.T) {
Details: schema.ExplainResponseDetails{
"url": server.URL + "/pet",
"headers": `{"Accept":["application/json"],"Api_key":["ran*******(14)"],"Content-Type":["application/json"]}`,
"body": `{"name":"pet"}`,
"body": "{\"name\":\"pet\"}\n",
},
})
})
Expand Down Expand Up @@ -380,7 +380,7 @@ func TestHTTPConnector_authentication(t *testing.T) {

res, err := http.Post(fmt.Sprintf("%s/query", testServer.URL), "application/json", bytes.NewBuffer(reqBody))
assert.NilError(t, err)
assert.Equal(t, http.StatusTooManyRequests, res.StatusCode)
assert.Equal(t, http.StatusUnprocessableEntity, res.StatusCode)
})

t.Run("encoding-ndjson", func(t *testing.T) {
Expand Down

0 comments on commit 9ddfa64

Please sign in to comment.