Commit 625469d
Balazs Gibizer
Avoid excessive sleep in vmware unit test
The patch Id6e2be2b407eb08e269c35e0f89d235c67a1ab99 added a retry
decorator on create_vm in vmware driver. Such decorator makes the
negative unit test do excessive sleeps and retries. The test eventually
stopped by the test executor with a Timeout exception but the test was
modified to assert that as a success. This makes the test pass after
160 seconds.
This patch mocks the sleep behind the retry decorator to make the test
fast and reverts the assert in the test.
Change-Id: I7c7e698bf559b69a2f09402c265e6e387c3b077a
Related-Bug: #19084081 parent 7c1ca50 commit 625469d
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
| 1027 | + | |
| 1028 | + | |
1027 | 1029 | | |
1028 | 1030 | | |
1029 | 1031 | | |
| |||
1042 | 1044 | | |
1043 | 1045 | | |
1044 | 1046 | | |
1045 | | - | |
1046 | | - | |
| 1047 | + | |
1047 | 1048 | | |
1048 | 1049 | | |
1049 | 1050 | | |
| |||
0 commit comments