Skip to content

Commit

Permalink
Fix test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Mar 5, 2024
1 parent cf60ff9 commit 3fcee72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function testHeaderRecordParamOfPureTypeHeadersNegative() returns error? {
});
if response is http:ClientRequestError {
test:assertEquals(response.detail().statusCode, 400, msg = "Found unexpected output");
common:assertErrorHeaderValue(response.detail().headers[common:CONTENT_TYPE], common:APPLICATION_JSON);
common:assertErrorHeaderValue(response.detail().headers[common:CONTENT_TYPE], common:TEXT_PLAIN);
test:assertEquals(response.detail().body, "no header value found for 'did'");
} else {
test:assertFail(msg = "Found unexpected output type");
Expand Down Expand Up @@ -697,7 +697,7 @@ function testHeaderRecordOfPureTypeHeadersNegative() returns error? {
});
if response is http:ClientRequestError {
test:assertEquals(response.detail().statusCode, 400, msg = "Found unexpected output");
common:assertErrorHeaderValue(response.detail().headers[common:CONTENT_TYPE], common:APPLICATION_JSON);
common:assertErrorHeaderValue(response.detail().headers[common:CONTENT_TYPE], common:TEXT_PLAIN);
test:assertEquals(response.detail().body, "no header value found for 'did'");
} else {
test:assertFail(msg = "Found unexpected output type");
Expand Down

0 comments on commit 3fcee72

Please sign in to comment.