Skip to content

Commit 0aaec14

Browse files
committed
Fix test_update_load_balancer_status
This test used assertEqual to compare 2 dictionaries from octavia and octavia-lib, but the result of the comparison depends on the versions of octavia and octavia-lib, they don't necessarily match. Use internal comparison functions to prevent further issues when adding features to octavia-lib. Change-Id: I3922d66eb4a04fdcb9b1afeba6c20ab0c52338cd
1 parent f68cafb commit 0aaec14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

octavia/tests/functional/api/drivers/driver_agent/test_driver_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,9 @@ def test_update_load_balancer_status(self):
600600
self.session.commit()
601601

602602
result = self.driver_lib.get_member(member_dict[lib_consts.ID])
603-
self.assertEqual(self.sample_data.provider_member2_dict,
604-
result.to_dict(render_unsets=True))
603+
self._compare_member_dicts(
604+
self.sample_data.provider_member2_dict,
605+
result.to_dict(render_unsets=True))
605606

606607
# Test deleting a member
607608
status = {

0 commit comments

Comments
 (0)