I'm trying to use <https://pypi.org/project/pytest...
# general
h
I'm trying to use https://pypi.org/project/pytest-rabbitmq/ in a unit test. It sets up a fixture that starts/stops a rabbitmq server for use in a test. I got this working outside of pants with
pytest
so I know my installation is good. It requires a
rabbitmq-server
and
erlang
installation on the system which are both available under my
PATH
. Pants seems to be picking things up fine because the server is attempted to start, but fails the boot process. I think sandboxing is the most obvious thing at play here. Any ideas for environment variable differences or similar to look at? When I preserve sandboxes, the generated
__run.sh
executes without error.
1
c
My guess would be
HOME
or
USER
or there abouts.
If rabbitmq fails to boot, that may be due to failing to find epmd perhaps..?
h
I'd be surprised that it found
rabbitmq-server
but not
epmd
.
HOME
was it 🎉
Adding that to
[test].extra_env_vars
did the thing
c
I mean to find the running instance of epmd.. 😁
great 🎉