From a5ab68a910565f0b699fc613dad5b9d2c18790db Mon Sep 17 00:00:00 2001 From: ilya Date: Fri, 22 Nov 2024 18:14:03 +0000 Subject: [PATCH] Comments --- crates/driver/src/tests/cases/settle.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/driver/src/tests/cases/settle.rs b/crates/driver/src/tests/cases/settle.rs index c82b0bac03..e8ae034101 100644 --- a/crates/driver/src/tests/cases/settle.rs +++ b/crates/driver/src/tests/cases/settle.rs @@ -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. The 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!(), }