File tree Expand file tree Collapse file tree
modules/neo4j/testcontainers/neo4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from testcontainers .core .config import testcontainers_config as c
1919from testcontainers .core .generic import DbContainer
2020from testcontainers .core .utils import raise_for_deprecated_parameter
21- from testcontainers .core .waiting_utils import wait_container_is_ready , wait_for_logs
22-
21+ from testcontainers .core .wait_strategies import LogMessageWaitStrategy
2322
2423class Neo4jContainer (DbContainer ):
2524 """
@@ -60,9 +59,10 @@ def _configure(self) -> None:
6059 def get_connection_url (self ) -> str :
6160 return f"bolt://{ self .get_container_host_ip ()} :{ self .get_exposed_port (self .port )} "
6261
63- @wait_container_is_ready ()
6462 def _connect (self ) -> None :
65- wait_for_logs (self , "Remote interface available at" , c .timeout )
63+ wait_strategy = LogMessageWaitStrategy ("Remote interface available at" )
64+ wait_strategy .with_startup_timeout (c .timeout )
65+ wait_strategy .wait_until_ready (self )
6666
6767 # Then we actually check that the container really is listening
6868 with self .get_driver () as driver :
You can’t perform that action at this time.
0 commit comments