Skip to content

Commit

Permalink
test: reduced fuzz duration oper count
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Jul 3, 2024
1 parent 50343e6 commit 5c1911a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -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);
});
Expand All @@ -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);
});
Expand All @@ -111,15 +111,15 @@ 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));
});
}

#[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));
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 5c1911a

Please sign in to comment.