Skip to content

Contributing test-cases for NSOperation/NSOperationQueue. #617

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

Closed
wants to merge 1 commit into from

Conversation

mamabusi
Copy link
Contributor

@mamabusi mamabusi commented Sep 2, 2016

No description provided.

msgOperations.append("Operation1 executed")
sleep(1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added time-lag to resolve the test-case failures seen sometimes on TestFoundation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry - sleep cannot be a fix for issues like this. Instead we should use a semaphore to signal completion of whatever work we are waiting on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Will modify to use semaphores. Thank you.

@erg
Copy link

erg commented Sep 7, 2016

The test is correct and exposed a real bug in the underlying concurrency code that is fixed by #621.

This PR is not needed now and can be closed.

@parkera parkera closed this Sep 7, 2016
@mamabusi mamabusi deleted the nsoperationtests-branch branch December 22, 2017 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants