micro_http: fix name of helper function in tests
@@ -536,7 +536,7 @@ mod tests {
use common::Body;
use utils::tempfile::TempFile;
- fn get_path_to_socket() -> TempFile {
+ fn get_temp_socket_file() -> TempFile {
let mut path_to_socket = TempFile::new().unwrap();
path_to_socket.remove().unwrap();
path_to_socket
@@ -544,7 +544,7 @@ mod tests {
#[test]
fn test_wait_one_connection() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
@@ -580,7 +580,7 @@ mod tests {
#[test]
fn test_wait_concurrent_connections() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
@@ -652,7 +652,7 @@ mod tests {
#[test]
fn test_wait_expect_connection() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
@@ -701,7 +701,7 @@ mod tests {
#[test]
fn test_wait_many_connections() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
@@ -721,7 +721,7 @@ mod tests {
#[test]
fn test_wait_parse_error() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
@@ -754,7 +754,7 @@ mod tests {
#[test]
fn test_wait_in_flight_responses() {
- let path_to_socket = get_path_to_socket();
+ let path_to_socket = get_temp_socket_file();
let mut server = HttpServer::new(path_to_socket.as_path()).unwrap();
server.start_server().unwrap();
