Skip to content

Commit

Permalink
text changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmorgan committed May 28, 2023
1 parent 137f2b5 commit cbf6f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,8 @@ func TestE2E_TaskEndpoints_InvalidSchema(t *testing.T) {
err := json.NewDecoder(resp.Body).Decode(&errorResponse)
require.NoError(t, err)

assert.Contains(t, errorResponse.Error.Message, `request body has an error: doesn't match the schema: `+
`Error at "/task/module": Field must be set to string or not be present`)
assert.Contains(t, errorResponse.Error.Message, `request body has an error: doesn't match schema`+
` #/components/schemas/TaskRequest: Error at "/task/module": value must be a string`)
require.Equal(t, http.StatusBadRequest, resp.StatusCode)

// Check that the task has not been created
Expand Down

0 comments on commit cbf6f68

Please sign in to comment.