Skip to content

mock sleep() in azure test#1137

Merged
blackboxsw merged 1 commit into
canonical:mainfrom
holmanb:holmanb/mock-sleep
Dec 7, 2021
Merged

mock sleep() in azure test#1137
blackboxsw merged 1 commit into
canonical:mainfrom
holmanb:holmanb/mock-sleep

Conversation

@holmanb
Copy link
Copy Markdown
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
Copy Markdown
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