aboutsummaryrefslogtreecommitdiff
path: root/src/frame/tests.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-22 14:06:16 +0100
committerMax Audron <me@audron.dev>2026-02-22 14:06:16 +0100
commit024eb3df4a0786a92033baea123aa779998cdc28 (patch)
tree412670a982455cb3351c199b7df21b0b22f3a36e /src/frame/tests.rs
parentSyncable trait error handling (diff)
NetworkList and signalproxy objects error handling
Diffstat (limited to 'src/frame/tests.rs')
-rw-r--r--src/frame/tests.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frame/tests.rs b/src/frame/tests.rs
index 4ae5e1a..69c27a6 100644
--- a/src/frame/tests.rs
+++ b/src/frame/tests.rs
@@ -111,7 +111,7 @@ fn quasselcodec_read_oversized() {
);
tokio_test::block_on(async move {
- let res = io.next().await.unwrap().map_err(|e| e.kind());
+ let res = io.next().await?.map_err(|e| e.kind());
let want = Err(std::io::ErrorKind::InvalidData);
assert_eq!(want, res);
@@ -170,7 +170,7 @@ fn write_single_frame() {
);
tokio_test::block_on(async move {
- io.send(b"abcdefghi".to_vec()).await.unwrap();
+ io.send(b"abcdefghi".to_vec()).await?;
});
}
@@ -188,9 +188,9 @@ fn write_multi_frame() {
);
tokio_test::block_on(async move {
- io.send(b"abcdefghi".to_vec()).await.unwrap();
- io.send(b"123".to_vec()).await.unwrap();
- io.send(b"hello world".to_vec()).await.unwrap();
+ io.send(b"abcdefghi".to_vec()).await?;
+ io.send(b"123".to_vec()).await?;
+ io.send(b"hello world".to_vec()).await?;
});
}
@@ -206,6 +206,6 @@ fn write_single_frame_compressed() {
);
tokio_test::block_on(async move {
- io.send(b"abcdefghi".to_vec()).await.unwrap();
+ io.send(b"abcdefghi".to_vec()).await?;
});
}