Skip to content

Commit

Permalink
change the results of some test
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard1048576 committed Oct 24, 2024
1 parent 14c19c8 commit 9904292
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ where
}
// partition or repartition the txs
self.partition_transactions();
if self.num_partitions == 1 && force_sequential {
if self.num_partitions == 1 {
break;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/erc20/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn erc20_batch_transfer() {
final_txs,
true,
[
("grevm.parallel_round_calls", DebugValue::Counter(1)),
("grevm.parallel_round_calls", DebugValue::Counter(0)),
("grevm.conflict_tx_cnt", DebugValue::Counter(0)),
]
.into_iter()
Expand Down
12 changes: 6 additions & 6 deletions tests/native_transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ fn native_with_all_related() {
txs,
false,
[
("grevm.parallel_round_calls", DebugValue::Counter(2)),
("grevm.sequential_execute_calls", DebugValue::Counter(0)),
("grevm.parallel_tx_cnt", DebugValue::Counter(block_size as u64)),
("grevm.parallel_round_calls", DebugValue::Counter(1)),
("grevm.sequential_execute_calls", DebugValue::Counter(1)),
("grevm.parallel_tx_cnt", DebugValue::Counter(4)),
("grevm.conflict_tx_cnt", DebugValue::Counter(96)),
("grevm.unconfirmed_tx_cnt", DebugValue::Counter(0)),
("grevm.reusable_tx_cnt", DebugValue::Counter(0)),
Expand Down Expand Up @@ -336,9 +336,9 @@ fn native_transfer_with_beneficiary() {
txs,
true,
[
("grevm.parallel_round_calls", DebugValue::Counter(2)),
("grevm.sequential_execute_calls", DebugValue::Counter(0)),
("grevm.parallel_tx_cnt", DebugValue::Counter(24 as u64)),
("grevm.parallel_round_calls", DebugValue::Counter(1)),
("grevm.sequential_execute_calls", DebugValue::Counter(1)),
("grevm.parallel_tx_cnt", DebugValue::Counter(20 as u64)),
("grevm.conflict_tx_cnt", DebugValue::Counter(4)),
("grevm.unconfirmed_tx_cnt", DebugValue::Counter(0)),
("grevm.reusable_tx_cnt", DebugValue::Counter(0)),
Expand Down

0 comments on commit 9904292

Please sign in to comment.