Commit aee762e
committed
Fix functional test race condition in nova template configuration
The "should have configured nova from the service template" test was
failing intermittently due to a stale object update pattern. The test
was retrieving the OpenStackControlPlane object outside the Eventually
block, then attempting to update it inside the block. This could fail
with update conflicts if the controller modified the object between
retrieval and update.
Move GetOpenStackControlPlane() inside the Eventually block to ensure
a fresh object is retrieved on each retry attempt, matching the pattern
used by other successful tests in the file.
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>1 parent ebf902f commit aee762e
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1946 | 1946 | | |
1947 | 1947 | | |
1948 | 1948 | | |
1949 | | - | |
1950 | 1949 | | |
| 1950 | + | |
1951 | 1951 | | |
1952 | 1952 | | |
1953 | 1953 | | |
| |||
0 commit comments