From 910574e04ada496d2289f4ce5756ec1e3ee9346b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 14 Feb 2020 14:58:01 +0100 Subject: tests: No need to check response returned by mock. --- tests/zotapi.rs | 6 ++---- 1 file 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] -- cgit v1.2.3