Skip to content

Commit c5928e0

Browse files
Remove unused in test (#165)
1 parent ae6cd50 commit c5928e0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libproc/file_info.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,14 @@ mod test {
181181
use crate::libproc::file_info::{ListFDs, ProcFDType};
182182
use crate::libproc::net_info::{SocketFDInfo, SocketInfoKind};
183183
use crate::libproc::proc_pid::{listpidinfo, pidinfo};
184-
184+
use std::process;
185185
use super::pidfdinfo;
186186

187187
#[test]
188188
#[allow(clippy::cast_possible_wrap)]
189189
fn pidfdinfo_test() {
190-
use std::net::TcpListener;
191-
use std::process;
192190
let pid = process::id() as i32;
193191

194-
let _listener = TcpListener::bind("127.0.0.1:65535");
195-
196192
let info = pidinfo::<BSDInfo>(pid, 0).expect("pidinfo() failed");
197193
let fds =
198194
listpidinfo::<ListFDs>(pid, info.pbi_nfiles as usize).expect("listpidinfo() failed");

0 commit comments

Comments
 (0)