sync: free chan Blocks when Chan is dropped (#978)

This commit is contained in:
Sean McArthur
2019-03-13 10:38:14 -07:00
committed by Carl Lerche
parent a1871b1480
commit 27148d6110
3 changed files with 35 additions and 7 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ fn dropping_rx_closes_channel_for_try() {
}
#[test]
fn unconsumed_messagers_are_dropped() {
fn unconsumed_messages_are_dropped() {
let msg = Arc::new(());
let (mut tx, rx) = mpsc::channel(100);