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

Add testing harness #17

Merged
merged 2 commits into from Aug 29, 2015
Merged

Add testing harness #17

merged 2 commits into from Aug 29, 2015

Conversation

ryansch
Copy link
Collaborator

@ryansch ryansch commented Aug 26, 2015

We use this testing harness in our application tests.

@leandromoreira
Copy link
Owner

Thanks so much @ryansch do you need a version of it?

value: SecureRandom.uuid
}
elsif @testing_mode == :fail
return false
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ryansch With this line you modified the behaviour of lock() to not yield in case try_lock_instances failed (in testing mode, of course). In fact, your application code should probably have error handling for when the block parameter is false, so I presume you would want to test that, too.

Change it to lock_info = false?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're absolutely correct.

@leandromoreira
Copy link
Owner

thanks @maltoe

leandromoreira added a commit that referenced this pull request Aug 29, 2015
@leandromoreira leandromoreira merged commit 05e272e into master Aug 29, 2015
@leandromoreira
Copy link
Owner

Thanks @ryansch

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.

None yet

3 participants