Skip to content

Commit 418fc93

Browse files
committed
chore: add checks in http client tests
1 parent b72c792 commit 418fc93

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libdd-http-client/src/client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ mod tests {
119119
.base_url("http://localhost:8126".to_owned())
120120
.timeout(Duration::from_secs(5))
121121
.build();
122-
assert!(client.is_ok());
122+
let client = client.unwrap();
123+
assert_eq!(client.config().base_url(), "http://localhost:8126");
124+
assert_eq!(client.config().timeout(), Duration::from_secs(5));
123125
}
124126

125127
#[cfg_attr(miri, ignore)]

0 commit comments

Comments
 (0)