mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-03-31 08:13:48 +00:00
Use fresh deployer in compose attach tests
This commit is contained in:
parent
45bd07737e
commit
2c5eade572
@ -13,9 +13,9 @@ async fn compose_attach_mode_queries_node_api_opt_in() -> Result<()> {
|
||||
.with_run_duration(Duration::from_secs(5))
|
||||
.build()?;
|
||||
|
||||
let deployer = LbcComposeDeployer::default();
|
||||
let managed_deployer = LbcComposeDeployer::default();
|
||||
let (_managed_runner, metadata): (Runner<LbcExtEnv>, ComposeDeploymentMetadata) =
|
||||
match deployer.deploy_with_metadata(&managed).await {
|
||||
match managed_deployer.deploy_with_metadata(&managed).await {
|
||||
Ok(result) => result,
|
||||
Err(ComposeRunnerError::DockerUnavailable) => return Ok(()),
|
||||
Err(error) => return Err(Error::new(error)),
|
||||
@ -27,7 +27,8 @@ async fn compose_attach_mode_queries_node_api_opt_in() -> Result<()> {
|
||||
.with_attach_source(attach_source)
|
||||
.build()?;
|
||||
|
||||
let attached_runner: Runner<LbcExtEnv> = match deployer.deploy(&attached).await {
|
||||
let attached_deployer = LbcComposeDeployer::default();
|
||||
let attached_runner: Runner<LbcExtEnv> = match attached_deployer.deploy(&attached).await {
|
||||
Ok(runner) => runner,
|
||||
Err(ComposeRunnerError::DockerUnavailable) => return Ok(()),
|
||||
Err(error) => return Err(Error::new(error)),
|
||||
@ -62,9 +63,9 @@ async fn compose_attach_mode_restart_node_opt_in() -> Result<()> {
|
||||
.with_run_duration(Duration::from_secs(5))
|
||||
.build()?;
|
||||
|
||||
let deployer = LbcComposeDeployer::default();
|
||||
let managed_deployer = LbcComposeDeployer::default();
|
||||
let (_managed_runner, metadata): (Runner<LbcExtEnv>, ComposeDeploymentMetadata) =
|
||||
match deployer.deploy_with_metadata(&managed).await {
|
||||
match managed_deployer.deploy_with_metadata(&managed).await {
|
||||
Ok(result) => result,
|
||||
Err(ComposeRunnerError::DockerUnavailable) => return Ok(()),
|
||||
Err(error) => return Err(Error::new(error)),
|
||||
@ -83,7 +84,8 @@ async fn compose_attach_mode_restart_node_opt_in() -> Result<()> {
|
||||
.with_attach_source(attach_source)
|
||||
.build()?;
|
||||
|
||||
let attached_runner: Runner<LbcExtEnv> = match deployer.deploy(&attached).await {
|
||||
let attached_deployer = LbcComposeDeployer::default();
|
||||
let attached_runner: Runner<LbcExtEnv> = match attached_deployer.deploy(&attached).await {
|
||||
Ok(runner) => runner,
|
||||
Err(ComposeRunnerError::DockerUnavailable) => return Ok(()),
|
||||
Err(error) => return Err(Error::new(error)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user