Skip to content

Commit

Permalink
Server tests, drop 'server_ prefix. (#41)
Browse files Browse the repository at this point in the history
Minor cleanup. Since we no longer have both Sessions
and Server in the same file, no need for the test naming
prefix.
  • Loading branch information
markmandel authored Apr 14, 2020
1 parent f929ce9 commit 753d9bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ mod tests {
use super::*;

#[tokio::test]
async fn server_run_server() {
async fn run_server() {
let log = logger();
let server = Server::new(log.clone(), FilterRegistry::new());

Expand Down Expand Up @@ -320,7 +320,7 @@ mod tests {
}

#[tokio::test]
async fn server_run_client() {
async fn run_client() {
let log = logger();
let server = Server::new(log.clone(), FilterRegistry::new());
let socket = ephemeral_socket().await;
Expand Down Expand Up @@ -349,7 +349,7 @@ mod tests {
}

#[tokio::test]
async fn server_bind() {
async fn bind() {
let config = Config {
local: Local { port: 12345 },
filters: vec![],
Expand All @@ -365,7 +365,7 @@ mod tests {
}

#[tokio::test]
async fn server_process_receive_socket() {
async fn process_receive_socket() {
time::pause();

let log = logger();
Expand Down Expand Up @@ -433,7 +433,7 @@ mod tests {
}

#[tokio::test]
async fn server_ensure_session() {
async fn ensure_session() {
let log = logger();
let map: SessionMap = Arc::new(RwLock::new(HashMap::new()));
let from: SocketAddr = "127.0.0.1:27890".parse().unwrap();
Expand Down Expand Up @@ -483,7 +483,7 @@ mod tests {
}

#[tokio::test]
async fn server_prune_sessions() {
async fn prune_sessions() {
time::pause();
let log = logger();
let sessions: SessionMap = Arc::new(RwLock::new(HashMap::new()));
Expand Down

0 comments on commit 753d9bc

Please sign in to comment.