From a3ae049fceb70dd14a7ae39d84c8643fd4f4fcb3 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Wed, 13 Oct 2021 16:25:42 +0400 Subject: [PATCH] fix circleci --- webhook/src/handler/tests/handler_integration.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webhook/src/handler/tests/handler_integration.rs b/webhook/src/handler/tests/handler_integration.rs index ab353ed..fd0d67f 100644 --- a/webhook/src/handler/tests/handler_integration.rs +++ b/webhook/src/handler/tests/handler_integration.rs @@ -5,7 +5,7 @@ use crate::{ handler::tests::utils::{generate_keypair, sign_message}, start, }; -use common::{config::test_init, nats_crate::Connection, testcontainers::images::generic::WaitFor}; +use common::{config::test_init, nats_crate::Connection, testcontainers::{Image, images::generic::WaitFor}}; use common::{ config::Settings, log::info, @@ -41,10 +41,12 @@ lazy_static! { let container = DOCKER.run(image); container.start(); + container.image().wait_until_ready(&container); container.get_host_port(4222).unwrap(); container }; + static ref KEYPAIR: (String, [u8; 64]) = { generate_keypair() }; -- 2.39.5