Streamer test is linux only, remove warnings on not-linux (#9274)

automerge
This commit is contained in:
Jack May 2020-04-02 18:02:49 -07:00 committed by GitHub
parent c67e9fabc4
commit 1078c86100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
#![cfg(target_os = "linux")]
use solana_streamer::packet::Packet;
use solana_streamer::packet::PACKET_DATA_SIZE;
use solana_streamer::recvmmsg::*;
use std::net::UdpSocket;
use std::time::Instant;
#[cfg(target_os = "linux")]
#[test]
pub fn test_recv_mmsg_batch_size() {
let reader = UdpSocket::bind("127.0.0.1:0").expect("bind");