Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a sleep interval after domainlevel raise in tests #28

Closed
wants to merge 1 commit into from
Closed

Added a sleep interval after domainlevel raise in tests #28

wants to merge 1 commit into from

Conversation

ofayans
Copy link
Contributor

@ofayans ofayans commented Aug 26, 2016

Due to race conditions the test sometimes catches 2 one-way segments instead of
one bidirectional. We need to give the master time to merge the one-way
segments before we test the output.

https://fedorahosted.org/freeipa/ticket/6265

@MartinBasti
Copy link
Contributor

Maybe comment next to sleep why the sleep is there, may not hurt

Due to race conditions the test sometimes catches 2 one-way segments instead of
one bidirectional. We need to give the master time to merge the one-way
segments before we test the output.

https://fedorahosted.org/freeipa/ticket/6265
@ofayans
Copy link
Contributor Author

ofayans commented Aug 26, 2016

Done.

@@ -63,7 +64,9 @@ def test_backup_restore(self):
command = ["ipa", "topologysegment-find", DOMAIN_SUFFIX_NAME]
tasks.install_replica(self.master, self.replicas[0])
backup_file = tasks.ipa_backup(self.master)
self.master.run_command(["ipa", "domainlevel-set", "1"])
self.master.run_command(["ipa", "domainlevel-set", str(DOMAIN_LEVEL_1)])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last time I ACKed unrelated change in one commit

@MartinBasti MartinBasti added the ack Pull Request approved, can be merged label Aug 26, 2016
@MartinBasti
Copy link
Contributor

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants