mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +03:00
cleanup tests
This commit is contained in:
parent
57838b5122
commit
ddb3867252
2 changed files with 9 additions and 3 deletions
|
@ -569,9 +569,15 @@ mod tests {
|
|||
use crate::BytesCodec;
|
||||
|
||||
#[ntex::test]
|
||||
async fn test_debug() {
|
||||
async fn test_basics() {
|
||||
let (_, server) = Io::create();
|
||||
let server = Framed::new(server, BytesCodec);
|
||||
let mut server = Framed::new(server, BytesCodec);
|
||||
server.get_codec_mut();
|
||||
server.get_ref();
|
||||
server.get_mut();
|
||||
|
||||
let parts = server.into_parts();
|
||||
let server = Framed::from_parts(FramedParts::new(parts.io, parts.codec));
|
||||
assert!(format!("{:?}", server).contains("Framed"));
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ impl Worker {
|
|||
let (tx2, rx2) = unbounded();
|
||||
let avail = availability.clone();
|
||||
|
||||
Arbiter::new().exec_fn(move || {
|
||||
Arbiter::default().exec_fn(move || {
|
||||
let _ = spawn(async move {
|
||||
match Worker::create(rx1, rx2, factories, availability, shutdown_timeout)
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue