Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Nov 22, 2024
1 parent 695a679 commit 7bcd92f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/driver/src/tests/cases/settle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,15 @@ async fn too_many_settle_calls() {

for (index, result) in results.into_iter().enumerate() {
match index {
// The first must be settled.
0 => {
result.ok().await.ab_order_executed().await;
}
// We don't really care about the intermediate settlements. They are processed but due
// to the test framework limitation, the same solution settlements fail. We
// are fine with that to avoid huge changes in the framework.
1 | 2 => result.err().kind("FailedToSubmit"),
// Driver's settlement queue max size is 3. The last request should be discarded.
3 => result.err().kind("QueueAwaitingDeadlineExceeded"),
_ => unreachable!(),
}
Expand Down

0 comments on commit 7bcd92f

Please sign in to comment.