commit 0bbab95265b0a167b5c6308a35d7922783d9178e
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Feb 14 04:40:15 2023 +0100
[UT] Mock the retry decorator when creating duplicated NDPProxy
The test ``test_create_ndp_proxy_with_duplicated`` was correctly testing
the creation of a duplicated NDPProxy object. However it was taking
around 3 minutes because the decorator ``oslo_db_api.wrap_db_retry``
was retrying the object creation several times. This patch mocks the
retry decorator; now the test takes around 6 seconds.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/873786 /opendev. org/openstack/ neutron/ commit/ 0bbab95265b0a16 7b5c6308a35d792 2783d9178e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit 0bbab95265b0a16 7b5c6308a35d792 2783d9178e
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Tue Feb 14 04:40:15 2023 +0100
[UT] Mock the retry decorator when creating duplicated NDPProxy
The test ``test_ create_ ndp_proxy_ with_duplicated `` was correctly testing db_api. wrap_db_ retry``
the creation of a duplicated NDPProxy object. However it was taking
around 3 minutes because the decorator ``oslo_
was retrying the object creation several times. This patch mocks the
retry decorator; now the test takes around 6 seconds.
Closes-Bug: #2007254 e112e1d55fefe66 2016430aa5b
Change-Id: I2fcad691df4a7a