Skip to content

Commit

Permalink
Update the test case with brotli encoding support
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Aug 15, 2024
1 parent 9f1a143 commit a8005ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function testAcceptEncodingEnabled() {
http:Response|error response = acceptEncodingEnableEP->post("/", req);
if response is http:Response {
test:assertEquals(response.statusCode, 200, msg = "Found unexpected output");
common:assertJsonValue(response.getJsonPayload(), "acceptEncoding", "deflate, gzip");
common:assertJsonValue(response.getJsonPayload(), "acceptEncoding", "deflate, gzip, br");
common:assertHeaderValue(response.server, "Mysql");
} else {
test:assertFail(msg = "Found unexpected output type: " + response.message());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function testHttp2AcceptEncodingEnabled() {
http:Response|error response = http2AcceptEncodingEnableEP->post("/", req);
if response is http:Response {
test:assertEquals(response.statusCode, 200, msg = "Found unexpected output");
common:assertJsonValue(response.getJsonPayload(), "acceptEncoding", "deflate, gzip");
common:assertJsonValue(response.getJsonPayload(), "acceptEncoding", "deflate, gzip, br");
common:assertHeaderValue(response.server, "Mysql");
} else {
test:assertFail(msg = "Found unexpected output type: " + response.message());
Expand Down

0 comments on commit a8005ce

Please sign in to comment.