mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 14:56:33 +03:00
test_utils.rs / TestContext: Remove poison channel, don't fail test if events loop panics (because it can't panic anymore) (#3380)
I added this poison_sender and poison_receiver stuff back when we had event listeners (which were called "sinks", too, but anyway), i.e. user-definable closures that were run in the events loop. This was to make sure that the test fails if the closure panics. But since we don't have them anymore and this code isn't supposed to panic anyway:
```rust
while let Some(event) = events.recv().await {
for sender in senders.read().await.iter() {
sender.try_send(event.clone()).ok();
}
}
```
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## Unreleased
|
||||
|
||||
### Changes
|
||||
- refactorings #3373 #3345
|
||||
- refactorings #3373 #3345 #3380
|
||||
|
||||
### Fixes
|
||||
- delete outgoing MDNs found in the Sent folder on Gmail #3372
|
||||
|
||||
Reference in New Issue
Block a user