Skip to content

Commit

Permalink
Fix error message change
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Dec 16, 2024
1 parent 57f6baa commit 03e9da0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function testRequestAnydataNegative() returns error? {
json|error payload = outRequestClient->post("/mytest/json", x);
if payload is error {
if payload is http:InitializingOutboundRequestError {
test:assertEquals(payload.message(), "json conversion error: {ballerina/lang.value}CyclicValueReferenceError");
test:assertEquals(payload.message(), "json conversion error: the value has a cyclic reference");
return;
}
}
Expand Down Expand Up @@ -477,7 +477,7 @@ public function testResponseAnydataNegative() returns error? {
http:Response resp = check outRequestClient->get("/mytest/anydataNegative");
test:assertEquals(resp.statusCode, 500, msg = "Found unexpected output");
common:assertHeaderValue(check resp.getHeader(common:CONTENT_TYPE), common:APPLICATION_JSON);
check common:assertJsonErrorPayload(check resp.getJsonPayload(), "json conversion error: {ballerina/lang.value}CyclicValueReferenceError",
check common:assertJsonErrorPayload(check resp.getJsonPayload(), "json conversion error: the value has a cyclic reference",
"Internal Server Error", 500, "/mytest/anydataNegative", "GET");
}

Expand Down

0 comments on commit 03e9da0

Please sign in to comment.