Fix client doc test (#241)

The test is not supposed to actually run, but the `select` is not fast
enough on Travis.
This commit is contained in:
Carl Lerche
2018-03-13 14:53:35 -07:00
committed by GitHub
parent f8baeb7211
commit 5d4c89b1a9

View File

@@ -86,6 +86,7 @@
//! let addr = "127.0.0.1:5928".parse().unwrap();
//!
//! core.run({
//! # let _ =
//! // Establish TCP connection to the server.
//! TcpStream::connect(&addr, &handle)
//! .map_err(|_| {
@@ -138,7 +139,8 @@
//! })
//! })
//! })
//! # .select(ok(()))
//! # ;
//! # ok::<_, ()>(())
//! }).ok().expect("failed to perform HTTP/2.0 request");
//! }
//! ```