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

mock sleep() in azure test #1137

Merged
merged 1 commit into from
Dec 7, 2021
Merged

Conversation

holmanb
Copy link
Member

@holmanb holmanb commented Dec 7, 2021

It looks like this is patched in other tests, this must have been missed.

Proposed Commit Message

mock sleep() in azure test

It looks like this is patched in other tests, this must have been missed.

arc~/cloud-init(:cd40789a|…) pytest --durations=1 tests/unittests/sources/test_azure.py
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.9.7, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /home/holmanb/cloud-init, configfile: tox.ini
plugins: cov-3.0.0, xdist-2.2.0, forked-1.3.0
collected 160 items                                                                                                                                                                                        

tests/unittests/sources/test_azure.py .............................................................................................................................................................. [ 98%]
..                                                                                                                                                                                                   [100%]

=========================================================================================== slowest 1 durations ============================================================================================
0.50s call     tests/unittests/sources/test_azure.py::TestPreprovisioningHotAttachNics::test_wait_for_link_up_checks_link_after_sleep
=========================================================================================== 160 passed in 2.61s ============================================================================================



arc~/cloud-init(main↓1↑5|…) pytest --durations=1 tests/unittests/sources/test_azure.py
=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.9.7, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /home/holmanb/cloud-init, configfile: tox.ini
plugins: cov-3.0.0, xdist-2.2.0, forked-1.3.0
collected 160 items                                                                                                                                                                                        

tests/unittests/sources/test_azure.py .............................................................................................................................................................. [ 98%]
..                                                                                                                                                                                                   [100%]

=========================================================================================== slowest 1 durations ============================================================================================
0.04s call     tests/unittests/sources/test_azure.py::TestAzureDataSource::test_user_not_locked_if_password_redacted
=========================================================================================== 160 passed in 2.11s ============================================================================================

Copy link
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+!

@blackboxsw blackboxsw merged commit 2969cea into canonical:main Dec 7, 2021
@holmanb holmanb deleted the holmanb/mock-sleep branch December 7, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants