Skip to content

Commit

Permalink
Change the IP address from IPv6 to IPv4, in the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
4lDO2 committed Mar 7, 2019
1 parent 6175bc4 commit 6fc587c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn time() -> Result<(), Error> {

let thread: JoinHandle<Result<(), Error>> = std::thread::spawn(move || {
let mut time = initial_time;
let listener = TcpListener::bind("::1:8888")?;
let listener = TcpListener::bind("127.0.0.1:8888")?;
sender.send(())?;
let (stream, _) = listener.accept()?;

Expand All @@ -74,7 +74,7 @@ fn time() -> Result<(), Error> {
Ok(())
});
receiver.recv()?;
let stream = TcpStream::connect("::1:8888")?;
let stream = TcpStream::connect("127.0.0.1:8888")?;
let mut sender = Sender::<Request>::new(stream.try_clone()?);
let mut receiver = Receiver::<Response>::new(stream);

Expand Down

0 comments on commit 6fc587c

Please sign in to comment.