Skip to content

Wait.forLogMessage times out constantly for Neo4j docker image #900

@michael-simons

Description

@michael-simons

Hi,

I cannot get the Wait.forLogMessage to work with a custom container based on the official Neo4j image:

This repeatedly times out:

 new GenericContainer("neo4j:3.4.7") // TODO Derive from Maven properties
			.withExposedPorts(7687)
			.withEnv("NEO4J_AUTH", "none")
			.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger(Neo4jClientVerificationTest.class)))
			.waitingFor(forLogMessage(".*Bolt enabled on 0\\.0\\.0\\.0:7687\\.", 1));

I'm on Java 11, full example is here

I thought I was stupid and didn't get the regex right, but every other, i.e. .*config.* fails, too

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions