From 7bcd92fff5023ba713dfb3388bbbad610483e1a1 Mon Sep 17 00:00:00 2001 From: ilya Date: Fri, 22 Nov 2024 18:14:46 +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..52e250a17b 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. 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!(), }