Skip to content

Examples of a collection fixture? #412

Answered by HofmeisterAn
jplumhoff asked this question in Q&A
Discussion options

You must be logged in to vote

Can you share some of your code (especially the CollectionDefinition)? I use collection fixtures without any issues for databases too. It looks like your connection is broken somehow.

The tests all work perfectly when I step through them in debug, but every one of them fails if I just run them.

Sounds like a race condition. Did you check the wait strategy? Is the container ready to accept connections, etc.?

Edit: I attached a small example. Maybe that helps: PostgreSqlSample.zip

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jplumhoff
Comment options

Answer selected by jplumhoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants