Adding INITIAL_TAG to test code
This commit is contained in:
parent
59bee5bd42
commit
2e05110ba2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue