You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat molecule/default/tests/test_default.py
…
def test_locales(host):
locale_ = host.check_output("locale")
assert "LANG=fr_FR.UTF-8" in locale_
assert "LC_MESSAGES=en_US.UTF-8" in locale_
molecule verify report failure at first… then 60s or so later, the verify is ok.
This is because testinfra use the same ssh connection from ansible, which was created before ansible/molecule change the locales on the host.
60s later, the ssh persistent connection expire and testinfra use a new ssh connection with new environment (with the good locales).
Prerequisites
pip check
does not report any conflictsEnvironment
What happened
molecule verify
report failure at first… then 60s or so later, the verify is ok.This is because testinfra use the same ssh connection from ansible, which was created before ansible/molecule change the locales on the host.
60s later, the ssh persistent connection expire and testinfra use a new ssh connection with new environment (with the good locales).
What I did to bypass the problem:
Reproducing example
No response
The text was updated successfully, but these errors were encountered: