Skip to content

Commit

Permalink
used ? instead of unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Jul 9, 2020
1 parent c0d3ece commit d508da6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vit-servicing-station-tests/src/tests/rest/funds.rs
Expand Up @@ -6,14 +6,15 @@ use assert_fs::TempDir;
use reqwest::StatusCode;

#[test]
pub fn get_funds_list_is_not_empty() {
pub fn get_funds_list_is_not_empty() -> Result<(), Box<dyn std::error::Error>> {
let temp_dir = TempDir::new().unwrap();
let (server, hash) = quick_start(&temp_dir);
let (server, hash) = quick_start(&temp_dir)?;
let funds = server
.rest_client_with_token(hash)
.rest_client_with_token(&hash)
.funds()
.expect("cannot get funds");
assert!(funds.len() > 0);
Ok(())
}

#[test]
Expand Down

0 comments on commit d508da6

Please sign in to comment.