@@ -504,56 +504,56 @@ async fn test_writes_many(rt: TestRuntime) -> anyhow::Result<()> {
504
504
#[ convex_macro:: test_runtime]
505
505
async fn test_query_args_too_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
506
506
let t = UdfTest :: default ( rt) . await ?;
507
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 9_000_000 ] ) ?) ;
507
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 17_000_000 ] ) ?) ;
508
508
let e = t
509
509
. query_js_error ( "basic:readTime" , assert_obj ! ( "data" => data) )
510
510
. await ?;
511
511
assert_contains (
512
512
& e,
513
- "Arguments for basic.js:readTime are too large (actual: 8.58 MiB, limit: 8 MiB)" ,
513
+ "Arguments for basic.js:readTime are too large (actual: 16.21 MiB, limit: 16 MiB)" ,
514
514
) ;
515
515
Ok ( ( ) )
516
516
}
517
517
518
518
#[ convex_macro:: test_runtime]
519
519
async fn test_mutation_args_too_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
520
520
let t = UdfTest :: default ( rt) . await ?;
521
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 9_000_000 ] ) ?) ;
521
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 17_000_000 ] ) ?) ;
522
522
let e = t
523
523
. mutation_js_error ( "basic:simpleMutation" , assert_obj ! ( "data" => data) )
524
524
. await ?;
525
525
assert_contains (
526
526
& e,
527
- "Arguments for basic.js:simpleMutation are too large (actual: 8.58 MiB, limit: 8 MiB)" ,
527
+ "Arguments for basic.js:simpleMutation are too large (actual: 16.21 MiB, limit: 16 MiB)" ,
528
528
) ;
529
529
Ok ( ( ) )
530
530
}
531
531
532
532
#[ convex_macro:: test_runtime]
533
533
async fn test_action_args_too_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
534
534
let t = UdfTest :: default ( rt) . await ?;
535
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 9_000_000 ] ) ?) ;
535
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 17_000_000 ] ) ?) ;
536
536
let e = t
537
537
. action_js_error ( "basic:simpleAction" , assert_obj ! ( "data" => data) )
538
538
. await ?;
539
539
assert_contains (
540
540
& e,
541
- "Arguments for basic.js:simpleAction are too large (actual: 8.58 MiB, limit: 8 MiB)" ,
541
+ "Arguments for basic.js:simpleAction are too large (actual: 16.21 MiB, limit: 16 MiB)" ,
542
542
) ;
543
543
Ok ( ( ) )
544
544
}
545
545
546
546
#[ convex_macro:: test_runtime]
547
547
async fn test_query_args_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
548
548
let t = UdfTest :: default ( rt) . await ?;
549
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 8_000_000 ] ) ?) ;
549
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 16_000_000 ] ) ?) ;
550
550
let mut log_lines = t
551
551
. query_log_lines ( "basic:readTime" , assert_obj ! ( "data" => data) )
552
552
. await ?;
553
553
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
554
554
assert_contains (
555
555
& last_line,
556
- "[WARN] Large size of the function arguments (actual: 8000011 bytes, limit: 8388608 \
556
+ "[WARN] Large size of the function arguments (actual: 16000011 bytes, limit: 16777216 \
557
557
bytes).",
558
558
) ;
559
559
Ok ( ( ) )
@@ -562,14 +562,14 @@ async fn test_query_args_big(rt: TestRuntime) -> anyhow::Result<()> {
562
562
#[ convex_macro:: test_runtime]
563
563
async fn test_mutation_args_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
564
564
let t = UdfTest :: default ( rt) . await ?;
565
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 8_000_000 ] ) ?) ;
565
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 16_000_000 ] ) ?) ;
566
566
let mut log_lines = t
567
567
. mutation_log_lines ( "basic:simpleMutation" , assert_obj ! ( "data" => data) )
568
568
. await ?;
569
569
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
570
570
assert_contains (
571
571
& last_line,
572
- "[WARN] Large size of the function arguments (actual: 8000011 bytes, limit: 8388608 \
572
+ "[WARN] Large size of the function arguments (actual: 16000011 bytes, limit: 16777216 \
573
573
bytes).",
574
574
) ;
575
575
Ok ( ( ) )
@@ -578,14 +578,15 @@ async fn test_mutation_args_big(rt: TestRuntime) -> anyhow::Result<()> {
578
578
#[ convex_macro:: test_runtime]
579
579
async fn test_action_args_big ( rt : TestRuntime ) -> anyhow:: Result < ( ) > {
580
580
let t = UdfTest :: default ( rt) . await ?;
581
- let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 8_000_000 ] ) ?) ;
581
+ let data: ConvexValue = ConvexValue :: Bytes ( ConvexBytes :: try_from ( vec ! [ 0 ; 16_000_000 ] ) ?) ;
582
582
let mut log_lines = t
583
583
. action_log_lines ( "basic:simpleAction" , assert_obj ! ( "data" => data) )
584
584
. await ?;
585
585
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
586
586
assert_contains (
587
587
& last_line,
588
- "[WARN] Large size of the action arguments (actual: 8000011 bytes, limit: 8388608 bytes)." ,
588
+ "[WARN] Large size of the action arguments (actual: 16000011 bytes, limit: 16777216 \
589
+ bytes).",
589
590
) ;
590
591
Ok ( ( ) )
591
592
}
@@ -596,13 +597,13 @@ async fn test_query_result_too_big(rt: TestRuntime) -> anyhow::Result<()> {
596
597
let e = t
597
598
. query_js_error (
598
599
"adversarial:queryResultSized" ,
599
- assert_obj ! ( "size" => 9_000_000 .0) ,
600
+ assert_obj ! ( "size" => 17_000_000 .0) ,
600
601
)
601
602
. await ?;
602
603
assert_contains (
603
604
& e,
604
- "Function adversarial.js:queryResultSized return value is too large (actual: 8.58 MiB, \
605
- limit: 8 MiB)",
605
+ "Function adversarial.js:queryResultSized return value is too large (actual: 16.21 MiB, \
606
+ limit: 16 MiB)",
606
607
) ;
607
608
Ok ( ( ) )
608
609
}
@@ -613,13 +614,13 @@ async fn test_mutation_result_too_big(rt: TestRuntime) -> anyhow::Result<()> {
613
614
let e = t
614
615
. mutation_js_error (
615
616
"adversarial:mutationResultSized" ,
616
- assert_obj ! ( "size" => 9_000_000 .0) ,
617
+ assert_obj ! ( "size" => 17_000_000 .0) ,
617
618
)
618
619
. await ?;
619
620
assert_contains (
620
621
& e,
621
- "Function adversarial.js:mutationResultSized return value is too large (actual: 8.58 MiB, \
622
- limit: 8 MiB)",
622
+ "Function adversarial.js:mutationResultSized return value is too large (actual: 16.21 \
623
+ MiB, limit: 16 MiB)",
623
624
) ;
624
625
Ok ( ( ) )
625
626
}
@@ -630,13 +631,13 @@ async fn test_action_result_too_big(rt: TestRuntime) -> anyhow::Result<()> {
630
631
let e = t
631
632
. action_js_error (
632
633
"adversarial:actionResultSized" ,
633
- assert_obj ! ( "size" => 9_000_000 .0) ,
634
+ assert_obj ! ( "size" => 17_000_000 .0) ,
634
635
)
635
636
. await ?;
636
637
assert_contains (
637
638
& e,
638
- "Function adversarial.js:actionResultSized return value is too large (actual: 8.58 MiB, \
639
- limit: 8 MiB)",
639
+ "Function adversarial.js:actionResultSized return value is too large (actual: 16.21 MiB, \
640
+ limit: 16 MiB)",
640
641
) ;
641
642
Ok ( ( ) )
642
643
}
@@ -647,13 +648,13 @@ async fn test_query_result_big(rt: TestRuntime) -> anyhow::Result<()> {
647
648
let mut log_lines = t
648
649
. query_log_lines (
649
650
"adversarial:queryResultSized" ,
650
- assert_obj ! ( "size" => 8_000_000 .0) ,
651
+ assert_obj ! ( "size" => 16_000_000 .0) ,
651
652
)
652
653
. await ?;
653
654
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
654
655
assert_contains (
655
656
& last_line,
656
- "[WARN] Large size of the function return value (actual: 8000002 bytes, limit: 8388608 \
657
+ "[WARN] Large size of the function return value (actual: 16000002 bytes, limit: 16777216 \
657
658
bytes).",
658
659
) ;
659
660
Ok ( ( ) )
@@ -665,13 +666,13 @@ async fn test_mutation_result_big(rt: TestRuntime) -> anyhow::Result<()> {
665
666
let mut log_lines = t
666
667
. mutation_log_lines (
667
668
"adversarial:mutationResultSized" ,
668
- assert_obj ! ( "size" => 8_000_000 .0) ,
669
+ assert_obj ! ( "size" => 16_000_000 .0) ,
669
670
)
670
671
. await ?;
671
672
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
672
673
assert_contains (
673
674
& last_line,
674
- "[WARN] Large size of the function return value (actual: 8000002 bytes, limit: 8388608 \
675
+ "[WARN] Large size of the function return value (actual: 16000002 bytes, limit: 16777216 \
675
676
bytes).",
676
677
) ;
677
678
Ok ( ( ) )
@@ -683,13 +684,13 @@ async fn test_action_result_big(rt: TestRuntime) -> anyhow::Result<()> {
683
684
let mut log_lines = t
684
685
. action_log_lines (
685
686
"adversarial:actionResultSized" ,
686
- assert_obj ! ( "size" => 8_000_000 .0) ,
687
+ assert_obj ! ( "size" => 16_000_000 .0) ,
687
688
)
688
689
. await ?;
689
690
let last_line = log_lines. pop ( ) . unwrap ( ) . to_pretty_string_test_only ( ) ;
690
691
assert_contains (
691
692
& last_line,
692
- "[WARN] Large size of the action return value (actual: 8000002 bytes, limit: 8388608 \
693
+ "[WARN] Large size of the action return value (actual: 16000002 bytes, limit: 16777216 \
693
694
bytes).",
694
695
) ;
695
696
Ok ( ( ) )
0 commit comments