fix: Stabilize reported tests #31

ref: #32 #37
This commit is contained in:
Janez T
2026-04-26 08:24:07 +02:00
parent 2fe125d6ba
commit 0008eff1b8
6 changed files with 63 additions and 23 deletions

View File

@@ -926,7 +926,9 @@ void main() {
);
provider.markMessageSent('m2', 88, 10);
async.elapse(const Duration(milliseconds: 11));
final timeoutMs = provider.messages.single.suggestedTimeoutMs!;
async.elapse(Duration(milliseconds: timeoutMs + 1));
async.flushMicrotasks();
expect(provider.messages.single.retryAttempt, 1);