@@ -522,6 +522,7 @@ mod test {
522
522
MainWorkerRuntimeOpts , UserWorkerMsgs , UserWorkerRuntimeOpts , WorkerContextInitOpts ,
523
523
WorkerRuntimeOpts ,
524
524
} ;
525
+ use serial_test:: serial;
525
526
use std:: collections:: HashMap ;
526
527
use std:: fs;
527
528
use std:: fs:: File ;
@@ -532,6 +533,7 @@ mod test {
532
533
use tokio:: sync:: { mpsc, watch} ;
533
534
534
535
#[ tokio:: test]
536
+ #[ serial]
535
537
async fn test_module_code_no_eszip ( ) {
536
538
let ( worker_pool_tx, _) = mpsc:: unbounded_channel :: < UserWorkerMsgs > ( ) ;
537
539
let mut rt = DenoRuntime :: new ( WorkerContextInitOpts {
@@ -559,6 +561,7 @@ mod test {
559
561
}
560
562
561
563
#[ tokio:: test]
564
+ #[ serial]
562
565
#[ allow( clippy:: arc_with_non_send_sync) ]
563
566
async fn test_eszip_with_source_file ( ) {
564
567
let ( worker_pool_tx, _) = mpsc:: unbounded_channel :: < UserWorkerMsgs > ( ) ;
@@ -616,6 +619,7 @@ mod test {
616
619
}
617
620
618
621
#[ tokio:: test]
622
+ #[ serial]
619
623
#[ allow( clippy:: arc_with_non_send_sync) ]
620
624
async fn test_create_eszip_from_graph ( ) {
621
625
let ( worker_pool_tx, _) = mpsc:: unbounded_channel :: < UserWorkerMsgs > ( ) ;
@@ -707,6 +711,7 @@ mod test {
707
711
708
712
// Main Runtime should have access to `EdgeRuntime`
709
713
#[ tokio:: test]
714
+ #[ serial]
710
715
async fn test_main_runtime_creation ( ) {
711
716
let mut runtime = create_runtime ( None , None , None ) . await ;
712
717
@@ -726,6 +731,7 @@ mod test {
726
731
727
732
// User Runtime Should not have access to EdgeRuntime
728
733
#[ tokio:: test]
734
+ #[ serial]
729
735
async fn test_user_runtime_creation ( ) {
730
736
let mut runtime = create_runtime (
731
737
None ,
@@ -749,6 +755,7 @@ mod test {
749
755
}
750
756
751
757
#[ tokio:: test]
758
+ #[ serial]
752
759
async fn test_main_rt_fs ( ) {
753
760
let mut main_rt = create_runtime ( None , Some ( std:: env:: vars ( ) . collect ( ) ) , None ) . await ;
754
761
@@ -798,6 +805,7 @@ mod test {
798
805
// }
799
806
800
807
#[ tokio:: test]
808
+ #[ serial]
801
809
async fn test_os_ops ( ) {
802
810
let mut user_rt = create_runtime (
803
811
None ,
@@ -920,6 +928,7 @@ mod test {
920
928
}
921
929
922
930
#[ tokio:: test]
931
+ #[ serial]
923
932
async fn test_os_env_vars ( ) {
924
933
std:: env:: set_var ( "Supa_Test" , "Supa_Value" ) ;
925
934
let mut main_rt = create_runtime ( None , Some ( std:: env:: vars ( ) . collect ( ) ) , None ) . await ;
@@ -1016,6 +1025,7 @@ mod test {
1016
1025
}
1017
1026
1018
1027
#[ tokio:: test]
1028
+ #[ serial]
1019
1029
async fn test_read_file_user_rt ( ) {
1020
1030
let mut user_rt = create_basic_user_runtime ( "./test_cases/readFile" , 20 , 1000 ) . await ;
1021
1031
let ( _tx, unix_stream_rx) =
@@ -1033,6 +1043,7 @@ mod test {
1033
1043
}
1034
1044
1035
1045
#[ tokio:: test]
1046
+ #[ serial]
1036
1047
async fn test_array_buffer_allocation_below_limit ( ) {
1037
1048
let mut user_rt = create_basic_user_runtime ( "./test_cases/array_buffers" , 20 , 1000 ) . await ;
1038
1049
let ( _tx, unix_stream_rx) =
@@ -1042,6 +1053,7 @@ mod test {
1042
1053
}
1043
1054
1044
1055
#[ tokio:: test]
1056
+ #[ serial]
1045
1057
async fn test_array_buffer_allocation_above_limit ( ) {
1046
1058
let mut user_rt = create_basic_user_runtime ( "./test_cases/array_buffers" , 15 , 1000 ) . await ;
1047
1059
let ( _tx, unix_stream_rx) =
0 commit comments