We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2549311 commit da190a7Copy full SHA for da190a7
tests/negative_tests.rs
@@ -65,6 +65,7 @@ fn test_handling_errors_in_subscriber() {
65
66
// SAFETY: safe because `sock2` is a valid Unix socket, as asserted by the `unwrap` above.
67
unsafe { libc::close(sock2.as_raw_fd()) };
68
+ std::mem::forget(sock2);
69
70
event_manager.run_with_timeout(100).unwrap();
71
@@ -82,6 +83,7 @@ fn test_handling_errors_in_subscriber() {
82
83
84
85
86
87
88
let ready_list_len = event_manager.run_with_timeout(100).unwrap();
89
assert_eq!(ready_list_len, 2);
0 commit comments