Jamie Kirkpatrick

Results 18 comments of Jamie Kirkpatrick

I wanted to use this (to work around an issue I found) too :| Dang....maybe I'll just submit the patch for the issue I've got!

Here's a patch to work around the issue: http://dl.dropbox.com/u/164709/Misc/network_adapter.rb.patch. Unfortunately due to a bug in VirtualBox a special case workaround is needed (https://www.virtualbox.org/pipermail/vbox-dev/2011-August/004454.html).

I'm seeing this very same problem with `pytest-xdist` and tests that use a `postgres` container each. For the sake of clarity: `xdist` puts each test in a separate subprocess so...

Looking around it seems like folks have [had the same issue in other languages](https://github.com/testcontainers/testcontainers-rs-modules-community/issues/158). Assuming all languages use the same underlying container then there seems to be an issue with...

OK - I can see how the [python implementation](https://github.com/testcontainers/testcontainers-python/blob/b13b43da502b54af7a5b09fa70ee8f5e301d1fb7/core/testcontainers/core/waiting_utils.py#L104) would cause some indeterminate errors. The fix was to wait for the log message on both stderr AND stdout, one for...

I worked around the issue with the following patch in our pytest `conftest.py`: """ Monkey-patch for testcontainers-python/postgres issue https://github.com/testcontainers/testcontainers-python/issues/567#issuecomment-2260676840 """ def test_containers_wait_for_both_logs( container: postgres.PostgresContainer, predicate: Union[Callable, str], timeout: float =...

The trouble is that method is used in other places in the codebase so its probably better to parametize it somehow...thats the reason I didn't attempt a more comprehensive patch....

This would be such a win - I would also like notifications that are more elaborate (eg speak to me or ping my phone). Often I'm in another room (what...