Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky tests tests/test_iotedgedev_solution.py #564

Open
beandrad opened this issue May 10, 2022 · 0 comments
Open

Fix flaky tests tests/test_iotedgedev_solution.py #564

beandrad opened this issue May 10, 2022 · 0 comments

Comments

@beandrad
Copy link
Collaborator

  • iotedgedev Version: v3.3.4
  • Python Version: 3.6
  • Pip Version:
  • Development machine OS Version: Ubuntu 20.04
  • IoT Edge device OS Version: Ubuntu 20.04

The tests that call create_solution() in tests/test_iotedgedev_solution.py fail when the directory where the edge solution needs to be created is not empty. This happens when the files from a previous pipeline run are still there. The directory should be clean up on test setup and teardown.

Exception: ERROR: Directory is not empty. Run `iotedgedev iothub setup` to retrieve or create required Azure resources or clean the directory.

See pipeline run.
image

Steps to Reproduce:

  1. Run the corresponding tests in tests/test_iotedgedev_solution.py
@beandrad beandrad changed the title Fix flake tests tests/test_iotedgedev_solution.py Fix flaky tests tests/test_iotedgedev_solution.py May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant