Skip to content

Commit f038791

Browse files
fix: return error if amount_in is zero, instead of skipping the pool
1 parent 4d24894 commit f038791

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

protocol-testing/src/test_runner.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,9 @@ impl TestRunner {
818818

819819
// Skip if amount is zero
820820
if amount_in.is_zero() {
821-
info!("Amount in multiplied by percentage {percentage} is zero. Skipping pool {id}.");
822-
continue;
821+
return Err(miette!(
822+
"Amount in multiplied by percentage {percentage} is zero for pool {id}."
823+
));
823824
}
824825

825826
let amount_out_result = state

0 commit comments

Comments
 (0)