Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
luqasn committed May 30, 2018
1 parent 7c73a87 commit 51e416f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_fastly_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ def test_service_does_exist_and_activate_new_version_is_disabled(self):
old_configuration = FastlyConfiguration(self.configuration_fixture)
new_configuration = FastlyConfiguration(new_configuration)

old_service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, old_configuration, False).service
old_service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, old_configuration, True).service
new_service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, new_configuration, False).service

self.assertNotEqual(old_service.latest_version.configuration.response_objects, new_service.latest_version.configuration.response_objects)
self.assertNotEqual(old_service.latest_version.number, new_service.latest_version.number)
self.assertNotEqual(old_service.latest_version.configuration.response_objects, new_service.latest_version.configuration.response_objects)
self.assertFalse(new_service.latest_version.active)


Expand Down

0 comments on commit 51e416f

Please sign in to comment.