aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zotapi.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs
index b5c1652..91eecab 100644
--- a/tests/zotapi.rs
+++ b/tests/zotapi.rs
@@ -38,17 +38,15 @@ fn client() -> zotapi::Client {
#[test]
fn get_channel_stream() {
let m = default_mock("GET", "/api/z/1.0/channel/stream");
- let data = zotapi::channel_stream().fetch(&client());
+ zotapi::channel_stream().fetch(&client()).unwrap();
m.assert();
- assert_eq!(data.unwrap(), "{}");
}
#[test]
fn get_network_stream() {
let m = default_mock("GET", "/api/z/1.0/network/stream");
- let data = zotapi::network_stream().fetch(&client());
+ zotapi::network_stream().fetch(&client()).unwrap();
m.assert();
- assert_eq!(data.unwrap(), "{}");
}
#[test]