Simplified existing test.

This commit is contained in:
Aaron Weiss 2015-02-17 13:26:45 -05:00
parent a820310b9c
commit d6d332b6aa

View file

@ -259,12 +259,8 @@ mod test {
#[test] #[test]
fn identify_with_password() { fn identify_with_password() {
let server = IrcServer::from_connection(Config { let server = IrcServer::from_connection(Config {
owners: Some(vec![format!("test")]),
nickname: Some(format!("test")), nickname: Some(format!("test")),
alt_nicks: Some(vec![format!("test2")]),
server: Some(format!("irc.test.net")),
password: Some(format!("password")), password: Some(format!("password")),
channels: Some(vec![format!("#test"), format!("#test2")]),
.. Default::default() .. Default::default()
}, Connection::new(NullReader, MemWriter::new())); }, Connection::new(NullReader, MemWriter::new()));
{ {
@ -275,7 +271,7 @@ mod test {
PASS :password\r\nNICK :test\r\nUSER test 0 * :test\r\n"); PASS :password\r\nNICK :test\r\nUSER test 0 * :test\r\n");
} }
#[test] #[test]
fn send_pong() { fn send_pong() {
let server = IrcServer::from_connection(test_config(), let server = IrcServer::from_connection(test_config(),
Connection::new(NullReader, MemWriter::new())); Connection::new(NullReader, MemWriter::new()));