Modify body size test to check for > 1MB

This commit is contained in:
Anoop M D
2025-09-07 21:49:11 +05:30
committed by GitHub
parent 5a10322608
commit 1bc7a1f655

View File

@@ -21,7 +21,8 @@ script:post-response {
tests {
test("test body size", function() {
const bodySize = res.getSize().body;
expect(bodySize === 1048934).to.be.true;
// 1MB = 1024*1024 = 1048576
expect(bodySize > 1048576).to.be.true;
});
test("test header size", function() {