Skip to content

Commit 2be810c

Browse files
authored
Merge pull request #393 from Shopify/js.bump-input-size-limit
bump input size limit to 128kB
2 parents dcaf8c2 + d0d9500 commit 2be810c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/function_run_result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct FunctionRunResult {
3333
}
3434

3535
const DEFAULT_INSTRUCTIONS_LIMIT: u64 = 11_000_000;
36-
const DEFAULT_INPUT_SIZE_LIMIT: u64 = 64_000;
36+
const DEFAULT_INPUT_SIZE_LIMIT: u64 = 128_000;
3737
const DEFAULT_OUTPUT_SIZE_LIMIT: u64 = 20_000;
3838

3939
pub fn get_json_size_as_bytes(value: &serde_json::Value) -> usize {

tests/integration_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ mod tests {
264264

265265
cmd.assert()
266266
.success()
267-
.stdout(contains("Input Size: 62.50KB"))
267+
.stdout(contains("Input Size: 125.00KB"))
268268
.stdout(contains("Output Size: 19.53KB"))
269269
.stdout(contains("Instructions: 11M"));
270270

@@ -290,7 +290,7 @@ mod tests {
290290

291291
cmd.assert()
292292
.success()
293-
.stdout(contains("Input Size: 62.50KB"))
293+
.stdout(contains("Input Size: 125.00KB"))
294294
.stdout(contains("Output Size: 19.53KB"))
295295
.stdout(contains("Instructions: 11M"));
296296

@@ -325,7 +325,7 @@ mod tests {
325325

326326
cmd.assert()
327327
.success()
328-
.stdout(contains("Input Size: 125.00KB"))
328+
.stdout(contains("Input Size: 250.00KB"))
329329
.stdout(contains("Output Size: 39.06KB"))
330330
.stdout(contains("Instructions: 22M"));
331331

0 commit comments

Comments
 (0)