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

853 Fixing racy tests #857

Merged
merged 3 commits into from
Apr 16, 2015
Merged

853 Fixing racy tests #857

merged 3 commits into from
Apr 16, 2015

Conversation

annymsMthd
Copy link
Contributor

Adding this as a PR already to start testing on Akka's CI.

@annymsMthd
Copy link
Contributor Author

Relates to #853

…ion_if_no_result_will_arrive_within_the_given_time a little more difference to handle racy conditions.
{
Intercept<TimeoutException>(() => _inbox.Receive());
return true;
});

Within(TimeSpan.FromSeconds(1), () =>
{
Intercept<TimeoutException>(() => _inbox.Receive(TimeSpan.FromMilliseconds(100)));
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this part of the test is still subject to race conditions. Let's take a look at the Inbox code and see if anything's up there.

…ilure message before the test was timing out.
@Aaronontheweb
Copy link
Member

@annymsMthd looks like that was a bug inside Inbox - so good job. I'll pull it in and see if this alleviates the issue. Can only tell with time.

Aaronontheweb added a commit that referenced this pull request Apr 16, 2015
@Aaronontheweb Aaronontheweb merged commit f488215 into akkadotnet:dev Apr 16, 2015
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.

2 participants