Adding INITIAL_TAG to test code

This commit is contained in:
Matt McCoy 2016-06-21 15:20:59 -04:00
parent 59bee5bd42
commit 2e05110ba2

View file

@ -331,12 +331,13 @@ impl<T: Read+Write> Client<T> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use super::INITIAL_TAG;
use super::super::mock_stream::MockStream; use super::super::mock_stream::MockStream;
fn create_client_with_mock_stream(mock_stream: MockStream) -> Client<MockStream> { fn create_client_with_mock_stream(mock_stream: MockStream) -> Client<MockStream> {
Client { Client {
stream: mock_stream, stream: mock_stream,
tag: 1 tag: INITIAL_TAG
} }
} }