Skip to content

Commit

Permalink
chore: Fix build of wasabi (#2241)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored May 8, 2023
1 parent 99723dc commit aeedc88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/services/wasabi/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ mod tests {

#[test]
fn test_build_endpoint() {
let _ = env_logger::try_init();
let _ = tracing_subscriber::fmt().with_test_writer().try_init();

let endpoint_cases = vec![
Some("s3.wasabisys.com"),
Expand Down
5 changes: 4 additions & 1 deletion core/tests/behavior/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ use sha2::Sha256;
/// - If `opendal_{schema}_test` is on, construct a new Operator with given root.
/// - Else, returns a `None` to represent no valid config for operator.
pub fn init_service<B: Builder>() -> Option<Operator> {
let _ = tracing_subscriber::fmt().with_test_writer().try_init();
let _ = tracing_subscriber::fmt()
.pretty()
.with_test_writer()
.try_init();
let _ = dotenvy::dotenv();

let prefix = format!("opendal_{}_", B::SCHEME);
Expand Down

0 comments on commit aeedc88

Please sign in to comment.