Skip to content

Commit

Permalink
Add specific check to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Feb 21, 2024
1 parent be54903 commit 4fa28eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/crates/soroban-rpc/src/txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ mod tests {
.try_into()
.unwrap(),
ext: TransactionExt::V0,
}
};

let result = assemble(
&txn,
Expand Down Expand Up @@ -755,7 +755,10 @@ mod tests {
response.min_resource_fee = resource_fee;

match assemble(&txn, &response) {
Ok(_) => {}
Ok(atxn) => {
let expected = (((resource_fee + 100) as f64) * 1.15) as u32;
assert_eq!(atxn.fee, expected);
}
r => {
panic!("expected success, got: {r:#?}")
}
Expand Down

0 comments on commit 4fa28eb

Please sign in to comment.