Sped up test.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
Jeff Baskin 2025-10-29 10:01:00 -04:00
parent 6709a96285
commit 824d4957cd

View File

@ -4370,16 +4370,22 @@ mod document_files {
MsgAction::Show,
MsgAction::Update(Update::new()),
];
let mut msgs: HashMap<Uuid, MsgAction> = HashMap::new();
for msg_action in msg_actions.iter() {
let msg = Message::new(alt.clone(), msg_action.clone());
msgs.insert(msg.get_message_id().clone(), msg_action.clone());
queue.send(msg).unwrap();
match test_doc.get_receiver().recv_timeout(TIMEOUT) {
Ok(msg) => unreachable!("for {:?} should not receive: {:?}", msg_action, msg),
Err(err) => match err {
RecvTimeoutError::Timeout => {}
_ => unreachable!("should have timed out"),
},
}
}
match test_doc.get_receiver().recv_timeout(TIMEOUT) {
Ok(msg) => unreachable!(
"for {:?} should not receive: {:?}",
msgs.get(msg.get_message_id()).unwrap(),
msg
),
Err(err) => match err {
RecvTimeoutError::Timeout => {}
_ => unreachable!("got {:?}, should have timed out", err),
},
}
}