formatting: Fix format of load_balancer.rs
This commit is contained in:
parent
e5ddd296db
commit
df65ac3439
@ -370,13 +370,10 @@ mod tests {
|
|||||||
let result = get_servers_for_backend(&backend, &haproxy);
|
let result = get_servers_for_backend(&backend, &haproxy);
|
||||||
|
|
||||||
// Check the result
|
// Check the result
|
||||||
assert_eq!(
|
assert_eq!(result, vec![BackendServer {
|
||||||
result,
|
address: "192.168.1.1".to_string(),
|
||||||
vec![BackendServer {
|
port: 80,
|
||||||
address: "192.168.1.1".to_string(),
|
},]);
|
||||||
port: 80,
|
|
||||||
},]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn test_get_servers_for_backend_no_linked_servers() {
|
fn test_get_servers_for_backend_no_linked_servers() {
|
||||||
@ -433,18 +430,15 @@ mod tests {
|
|||||||
// Call the function
|
// Call the function
|
||||||
let result = get_servers_for_backend(&backend, &haproxy);
|
let result = get_servers_for_backend(&backend, &haproxy);
|
||||||
// Check the result
|
// Check the result
|
||||||
assert_eq!(
|
assert_eq!(result, vec![
|
||||||
result,
|
BackendServer {
|
||||||
vec![
|
address: "some-hostname.test.mcd".to_string(),
|
||||||
BackendServer {
|
port: 80,
|
||||||
address: "some-hostname.test.mcd".to_string(),
|
},
|
||||||
port: 80,
|
BackendServer {
|
||||||
},
|
address: "192.168.1.2".to_string(),
|
||||||
BackendServer {
|
port: 8080,
|
||||||
address: "192.168.1.2".to_string(),
|
},
|
||||||
port: 8080,
|
]);
|
||||||
},
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user