cht-core
cht-core copied to clipboard
E2E tests fail on MacOS
Describe the bug Running transition end to end tests fails on MacOS. The bug was traced to the package we use to read logs
To Reproduce Steps to reproduce the behavior:
- Use a MacOS device (haven't experienced on other OSs yet)
- Run the sentinel_api_transitions.spec.js e2e test
- Notice tests fail. Add a catch block to any of the tests if the error message is not descriptive
Expected behavior E2e tests pass locally on MacOS as they do on linux
Additional context Using https://github.com/g-script/better-tail fixes the issue but I broke some other e2e tests when I used it.
With archv3
, we are no longer using any external library to tail logs, instead we use docker logs <container> -f
.
https://github.com/medic/cht-core/blob/83089534226abde29cf50492d754a0009eccb9aa/tests/utils.js#L435-L436
We should confirm that this new approach works on Mac OS and close this issue.
@njogz If you have a moment, could you please check if this is still an issue?
@njuguna-n is this issue still happening? Can you please check and close the ticket if not relevant anymore?
I ran the e2e suite with 4.6 on macOS (Apple Silicon chip) and tests are passing.
Closing this issue as the macOS test problems were fixed in higher versions of the CHT, as @dianabarsan mentioned above.