]> git.puffer.fish Git - matthieu/nova.git/commitdiff
fix circleci
authorMatthieu <matthieu@developershouse.xyz>
Wed, 13 Oct 2021 12:25:42 +0000 (16:25 +0400)
committerMatthieu <matthieu@developershouse.xyz>
Wed, 13 Oct 2021 12:25:42 +0000 (16:25 +0400)
webhook/src/handler/tests/handler_integration.rs

index ab353ed81686ed9158149c13878666430bd0d832..fd0d67f959757cb71e543aee79202d44d7dc7e38 100644 (file)
@@ -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()
     };