mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
More tests (#368)
This commit is contained in:
parent
34142e1ae2
commit
e0b5284fdd
9 changed files with 82 additions and 37 deletions
|
@ -296,6 +296,10 @@ mod tests {
|
|||
let s = "test".to_string();
|
||||
assert_eq!(s.host(), "test");
|
||||
assert_eq!(s.port(), None);
|
||||
|
||||
let s = ByteString::from("test");
|
||||
assert_eq!(s.host(), "test");
|
||||
assert_eq!(s.port(), None);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -231,7 +231,10 @@ mod tests {
|
|||
ntex_service::fn_service(|_| async { Ok::<_, ()>(()) })
|
||||
});
|
||||
|
||||
let srv = Connector::default().tag("T").memory_pool(PoolId::P5);
|
||||
let srv = Connector::default()
|
||||
.tag("T")
|
||||
.memory_pool(PoolId::P5)
|
||||
.clone();
|
||||
let result = srv.connect("").await;
|
||||
assert!(result.is_err());
|
||||
let result = srv.connect("localhost:99999").await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue