summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralgochoi <86622919+algochoi@users.noreply.github.com>2023-04-06 10:27:23 -0400
committeralgochoi <86622919+algochoi@users.noreply.github.com>2023-04-06 10:27:23 -0400
commit893b5b492085103a0b7a60da41f521e5e55e14dd (patch)
tree3e3895e4aec497d8c04a107ca3021e2d28b9e41f
parentf388b43211abfa00d7f13b87c462191c771aaa7c (diff)
Add comment on macOS tests and change bs to vanilla bytes valuesimtest-mac
-rwxr-xr-xtest/scripts/e2e_subs/e2e-app-simulate.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/scripts/e2e_subs/e2e-app-simulate.sh b/test/scripts/e2e_subs/e2e-app-simulate.sh
index 6e11cb5a6..c68ab9ee9 100755
--- a/test/scripts/e2e_subs/e2e-app-simulate.sh
+++ b/test/scripts/e2e_subs/e2e-app-simulate.sh
@@ -22,7 +22,10 @@ CONST_FALSE="false"
# First, try to send an extremely large "transaction" in the request body.
# This should fail with a 413 error.
-dd if=/dev/zero of="${TEMPDIR}/toolarge.tx" bs=11m count=1
+# Some of our MacOS nightly tests fail for specifying the bs (block size)
+# value in capital letters (i.e. 11M), so just specify it as 1024 bytes and
+# allocate 11K blocks so we get a 11MB sized file.
+dd if=/dev/zero of="${TEMPDIR}/toolarge.tx" bs=1024 count=11000
RES=$(${gcmd} clerk simulate -t "${TEMPDIR}/toolarge.tx" 2>&1 || true)
EXPERROR="simulation error: HTTP 413 Request Entity Too Large:"
if [[ $RES != *"${EXPERROR}"* ]]; then