Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed Jul 19, 2023
1 parent 9057cd5 commit 4b1da75
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions integration-tests/src/containers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl<'a> Sandbox<'a> {
let image = GenericImage::new("ghcr.io/near/sandbox", "latest")
.with_wait_for(WaitFor::Nothing)
.with_exposed_port(Self::CONTAINER_RPC_PORT);
tracing::info!("Sandbox image created");
let image: RunnableImage<GenericImage> = (
image,
vec![
Expand All @@ -203,11 +204,21 @@ impl<'a> Sandbox<'a> {
],
)
.into();
tracing::info!("Sandbox runnable image created");
let image = image.with_network(network);
tracing::info!("Sandbox network added");
let container = docker_client.cli.run(image);
tracing::info!("Sandbox container running");

docker_client
.continuously_print_logs(container.id())
.await?;

tracing::info!("Sandbox printing logs: {}", container.id());
let address = docker_client
.get_network_ip_address(&container, network)
.await?;
tracing::info!("Sandbox address: {address}");
let host_port = container.get_host_port_ipv4(Self::CONTAINER_RPC_PORT);

container.exec(ExecCommand {
Expand Down
3 changes: 0 additions & 3 deletions integration-tests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ where
FIREBASE_AUDIENCE_ID,
)
.await?;
docker_client
.continuously_print_logs(leader_node.container.id())
.await?;

f(TestContext {
leader_node: &leader_node.api(
Expand Down

0 comments on commit 4b1da75

Please sign in to comment.