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

@ -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 }
}