From 5c1911ad80cefc28b8a793e126291de48546943b Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Wed, 3 Jul 2024 12:59:01 +0100 Subject: [PATCH] test: reduced fuzz duration oper count --- .../src/tests/e2e/cases/test_fuzz.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs b/contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs index 5b21aa0..8b6599d 100644 --- a/contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs +++ b/contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs @@ -57,7 +57,7 @@ fn test_order_fuzz_linear_large_orders_small_range() { #[test] fn test_order_fuzz_linear_small_orders_large_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_linear(count, (LARGE_NEGATIVE_TICK, LARGE_POSITIVE_TICK), 0.2); }); @@ -79,7 +79,7 @@ fn test_order_fuzz_linear_small_orders_small_range() { #[test] fn test_order_fuzz_linear_large_cancelled_orders_small_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_linear(count, (MIN_TICK, MIN_TICK + 20), 0.8); }); @@ -95,7 +95,7 @@ fn test_order_fuzz_linear_small_cancelled_orders_large_range() { #[test] fn test_order_fuzz_linear_large_all_cancelled_orders_small_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_linear(count, (-10, 10), 1.0); }); @@ -111,7 +111,7 @@ fn test_order_fuzz_linear_single_tick() { #[test] fn test_order_fuzz_mixed() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (-20, 20)); }); @@ -119,7 +119,7 @@ fn test_order_fuzz_mixed() { #[test] fn test_order_fuzz_mixed_single_tick() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (0, 0)); @@ -128,7 +128,7 @@ fn test_order_fuzz_mixed_single_tick() { #[test] fn test_order_fuzz_mixed_large_negative_tick_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (LARGE_NEGATIVE_TICK, LARGE_NEGATIVE_TICK + 10)); @@ -137,7 +137,7 @@ fn test_order_fuzz_mixed_large_negative_tick_range() { #[test] fn test_order_fuzz_mixed_large_positive_tick_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (LARGE_POSITIVE_TICK - 10, LARGE_POSITIVE_TICK)); @@ -146,7 +146,7 @@ fn test_order_fuzz_mixed_large_positive_tick_range() { #[test] fn test_order_fuzz_mixed_min_tick() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (MIN_TICK, MIN_TICK + 10)); @@ -155,7 +155,7 @@ fn test_order_fuzz_mixed_min_tick() { #[test] fn test_order_fuzz_large_tick_range() { - let oper_per_iteration = 2000; + let oper_per_iteration = 1000; run_for_duration(30, oper_per_iteration, |count| { run_fuzz_mixed(count, (MIN_TICK, LARGE_POSITIVE_TICK));