Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ rayon = "1.10.0"
byteorder = "1.5.0"
bincode = "2.0"
once_cell = "1.21"
testcontainers = "0.23"
testcontainers = "0.24"
scopeguard = "1.2.0"
serial_test = "3.2.0"
sysinfo = "0.35.0"
Expand Down
2 changes: 1 addition & 1 deletion libra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ tempfile = { workspace = true }
serial_test = { workspace = true }
tokio = { workspace = true, features = ["macros", "process"] }
tracing-test = { workspace = true }
testcontainers = { version = "0.23.0", features = ["http_wait","reusable-containers"] }
testcontainers = { workspace = true, features = ["http_wait","reusable-containers"] }
reqwest = { version = "0.12.12", features = ["blocking"] }
2 changes: 1 addition & 1 deletion libra/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
{
tracing::subscriber::set_global_default(
tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG)
.with_max_level(tracing::Level::INFO)
.finish(),
)
.unwrap();
Expand Down
4 changes: 2 additions & 2 deletions libra/src/utils/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ pub async fn setup_with_new_libra_in(temp_path: impl AsRef<Path>) {
};
command::init::init(args).await.unwrap();
}

/// change the log level to reduce verbose output.
pub fn init_debug_logger() {
let _ = tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG)
.with_max_level(tracing::Level::INFO)
.try_init(); // avoid multi-init
}

Expand Down
4 changes: 2 additions & 2 deletions libra/tests/mega_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ async fn mega_container(mapping_port: u16) -> ContainerAsync<GenericImage> {

GenericImage::new("ubuntu", "latest")
.with_exposed_port(mapping_port.tcp())
.with_wait_for(WaitFor::Http(
.with_wait_for(WaitFor::Http(Box::new(
HttpWaitStrategy::new("/")
.with_method(Method::GET)
.with_expected_status_code(404_u16),
))
)))
.with_mapped_port(mapping_port, mapping_port.tcp())
// .with_copy_to("/root/mega", MEGA.clone())
// .with_copy_to("/root/config.toml", CONFIG.clone())
Expand Down
2 changes: 1 addition & 1 deletion mega/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ serial_test = { workspace = true }
lazy_static = { workspace = true }
assert_cmd = { workspace = true }
scopeguard = { workspace = true }
testcontainers = { version = "0.23.0", features = ["http_wait","reusable-containers"] }
testcontainers = { workspace = true, features = ["http_wait","reusable-containers"] }
reqwest = { version = "0.12.12", features = ["blocking"] }
http = { workspace = true }
4 changes: 2 additions & 2 deletions mega/tests/lfs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ async fn mega_container(mapping_port: u16) -> ContainerAsync<GenericImage> {

GenericImage::new("ubuntu", "latest")
.with_exposed_port(mapping_port.tcp())
.with_wait_for(WaitFor::Http(
.with_wait_for(WaitFor::Http(Box::new(
HttpWaitStrategy::new("/")
.with_method(Method::GET)
.with_expected_status_code(404_u16),
))
)))
.with_mapped_port(mapping_port, mapping_port.tcp())
// .with_copy_to("/root/mega", MEGA.clone())
// .with_copy_to("/root/config.toml", CONFIG.clone())
Expand Down