aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zotapi.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-02-14 14:58:01 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-02-14 14:58:01 +0100
commit910574e04ada496d2289f4ce5756ec1e3ee9346b (patch)
tree2ed0be6cb7a523df0dca6f41c1d8d6e680c27c47 /tests/zotapi.rs
parentd99083c47ddd31288ed1b688002388f6e68c5e04 (diff)
downloadrust-zotapi-910574e04ada496d2289f4ce5756ec1e3ee9346b.tar.gz
rust-zotapi-910574e04ada496d2289f4ce5756ec1e3ee9346b.tar.bz2
rust-zotapi-910574e04ada496d2289f4ce5756ec1e3ee9346b.zip
tests: No need to check response returned by mock.
Diffstat (limited to 'tests/zotapi.rs')
-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]