Skip to content

Commit

Permalink
fix(rust): fix BaseHTTPClient doc tests (#1675)
Browse files Browse the repository at this point in the history
## Problem

Agama is failing to build in OBS because the tests are failing.

## Solution

After the latest changes in the `BaseHTTPClient` API, the doctests were
not adapted. This PR fixes
the problem.
  • Loading branch information
imobachgs authored Oct 17, 2024
2 parents 4cefd9b + cb072d1 commit 248a947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/agama-lib/src/base_http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::{auth::AuthToken, error::ServiceError};
/// use agama_lib::error::ServiceError;
///
/// async fn get_questions() -> Result<Vec<Question>, ServiceError> {
/// let client = BaseHTTPClient::new()?;
/// let client = BaseHTTPClient::default();
/// client.get("/questions").await
/// }
/// ```
Expand Down

0 comments on commit 248a947

Please sign in to comment.