Skip to content

Commit

Permalink
chore(dep): fix usage of testcontainers
Browse files Browse the repository at this point in the history
Use the new API exposed by the crate

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Oct 9, 2023
1 parent cf18828 commit 8fb837c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use common::{setup_command, test_data};
use predicates::{prelude::*, str::contains, str::is_empty};
use rstest::rstest;
use tempfile::tempdir;
use testcontainers::{clients, core::WaitFor, images};
use testcontainers::{clients, core::WaitFor};

mod common;

Expand Down Expand Up @@ -271,7 +271,7 @@ fn test_save_and_load() {
#[test]
fn test_push() {
let docker = clients::Cli::default();
let registry_image = images::generic::GenericImage::new("docker.io/library/registry", "2")
let registry_image = testcontainers::GenericImage::new("docker.io/library/registry", "2")
.with_wait_for(WaitFor::message_on_stderr("listening on "));

let testcontainer = docker.run(registry_image);
Expand Down

0 comments on commit 8fb837c

Please sign in to comment.