Fixed identify tests after IRCv3 changes.
This commit is contained in:
parent
b6526465dd
commit
066960838e
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
//! Utilities and shortcuts for working with IRC servers.
|
//! Utilities and shortcuts for working with IRC servers.
|
||||||
|
|
||||||
use std::io::Result;
|
use std::io::Result;
|
||||||
use std::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
use client::data::Command::{CAP, INVITE, JOIN, KICK, KILL, MODE, NICK, NOTICE};
|
use client::data::Command::{CAP, INVITE, JOIN, KICK, KILL, MODE, NICK, NOTICE};
|
||||||
|
@ -200,8 +199,8 @@ mod test {
|
||||||
let server = IrcServer::from_connection(test_config(),
|
let server = IrcServer::from_connection(test_config(),
|
||||||
Connection::new(buf_empty(), Vec::new()));
|
Connection::new(buf_empty(), Vec::new()));
|
||||||
server.identify().unwrap();
|
server.identify().unwrap();
|
||||||
assert_eq!(&get_server_value(server)[..],
|
assert_eq!(&get_server_value(server)[..], "CAP END\r\nNICK :test\r\n\
|
||||||
"CAP REQ :multi-prefix\r\nCAP END\r\nNICK :test\r\nUSER test 0 * :test\r\n");
|
USER test 0 * :test\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -212,8 +211,8 @@ mod test {
|
||||||
.. Default::default()
|
.. Default::default()
|
||||||
}, Connection::new(buf_empty(), Vec::new()));
|
}, Connection::new(buf_empty(), Vec::new()));
|
||||||
server.identify().unwrap();
|
server.identify().unwrap();
|
||||||
assert_eq!(&get_server_value(server)[..], "CAP REQ :multi-prefix\r\nCAP END\r\n\
|
assert_eq!(&get_server_value(server)[..], "CAP END\r\nPASS :password\r\nNICK :test\r\n\
|
||||||
PASS :password\r\nNICK :test\r\nUSER test 0 * :test\r\n");
|
USER test 0 * :test\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Reference in a new issue