Upgrade to testcontainers v0.12

This commit is contained in:
Thomas Eizinger 2021-02-16 17:09:09 +11:00
parent 7a9569ffd4
commit 8c83f7e2e1
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
7 changed files with 55 additions and 39 deletions

View file

@ -71,4 +71,4 @@ port_check = "0.1"
serde_cbor = "0.11"
spectral = "0.6"
tempfile = "3"
testcontainers = "0.11"
testcontainers = "0.12"

View file

@ -1,6 +1,6 @@
use std::collections::HashMap;
use testcontainers::{
core::{Container, Docker, Port, WaitForMessage},
core::{Container, Docker, WaitForMessage},
Image,
};
@ -55,10 +55,6 @@ impl Image for Bitcoind {
HashMap::new()
}
fn ports(&self) -> Option<Vec<Port>> {
None
}
fn with_args(self, args: <Self as Image>::Args) -> Self {
Bitcoind { args, ..self }
}

View file

@ -2,7 +2,7 @@ use crate::testutils::bitcoind;
use bitcoin::Network;
use std::collections::HashMap;
use testcontainers::{
core::{Container, Docker, Port, WaitForMessage},
core::{Container, Docker, WaitForMessage},
Image,
};
@ -51,10 +51,6 @@ impl Image for Electrs {
HashMap::new()
}
fn ports(&self) -> Option<Vec<Port>> {
None
}
fn with_args(self, args: <Self as Image>::Args) -> Self {
Electrs { args, ..self }
}