vm-virtio: net: Remove attributes for test exclusions

Now that the tests are in use this import and function is used.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-07-16 10:38:10 +01:00 committed by Samuel Ortiz
parent af15ce9dc3
commit 7499210d0c

View File

@ -9,7 +9,6 @@ use epoll;
use libc::EAGAIN;
use libc::EFD_NONBLOCK;
use std::cmp;
#[cfg(not(test))]
use std::io::Read;
use std::io::{self, Write};
use std::mem;
@ -296,7 +295,6 @@ impl NetEpollHandler {
Ok(())
}
#[cfg(not(test))]
fn read_tap(&mut self) -> io::Result<usize> {
self.tap.read(&mut self.rx.frame_buf)
}