commit 595c387efb19744e1c9547b79501e4bb8a94ea0d
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/ +/873739 /opendev. org/openstack/ neutron/ commit/ 595c387efb19744 e1c9547b79501e4 bb8a94ea0d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 595c387efb19744 e1c9547b79501e4 bb8a94ea0d
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