aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zotapi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zotapi.rs')
-rw-r--r--tests/zotapi.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs
index 4c0a207..e22ba30 100644
--- a/tests/zotapi.rs
+++ b/tests/zotapi.rs
@@ -38,7 +38,7 @@ fn client() -> zotapi::Client {
#[test]
fn get_channel_stream() {
let m = default_mock("GET", "/api/z/1.0/channel/stream");
- let data = client().channel_stream();
+ let data = zotapi::channel_stream().fetch(&client());
m.assert();
assert_eq!(data.unwrap(), "{}");
}
@@ -46,7 +46,7 @@ fn get_channel_stream() {
#[test]
fn get_network_stream() {
let m = default_mock("GET", "/api/z/1.0/network/stream");
- let data = client().network_stream();
+ let data = zotapi::network_stream().fetch(&client());
m.assert();
assert_eq!(data.unwrap(), "{}");
}
@@ -59,7 +59,7 @@ fn return_error_if_invalid_auth_provided() {
.with_body("This api requires login")
.create();
- let data = client().channel_stream();
+ let data = zotapi::channel_stream().fetch(&client());
m.assert();
assert!(data.is_err());
assert_eq!(format!("{:?}", data), "Err(Unauthorized)");