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

DM-15402: Fix race conditions in tests and enhance Config test coverage #73

Merged
merged 3 commits into from Aug 13, 2018

Conversation

timj
Copy link
Member

@timj timj commented Aug 11, 2018

Fix a race condition and whilst doing that we needed to update test coverage of config (there was concern that the tests did not show a failure when they should have).

Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Looks great! Glad you didn't take my word in my misdiagnosis of the last race condition I saw.

Only comment I have is that it might be good to put the Datastore test helper in a tests subpackage of the main lsst.daf.butler package, so it could be used to test hypothetical Datastores defined in other packages.

There was a copy and paste error in datastoreFits and this
code sharing fixes that so we do not reuse the same
directory.
* Now have 95% test coverage
* Remove code that doesn't seem to be doing anything.
* Remove <, > operators.
* Add tests for names() and asArray()
@timj
Copy link
Member Author

timj commented Aug 12, 2018

I'll merge this now and worry about a tests module later. My main reason is that creating lsst.daf.butler.tests means I'll have to write much more extensive documentation and ensure that all the assumed state is known.

@timj timj merged commit c333e83 into master Aug 13, 2018
@ktlim ktlim deleted the tickets/DM-15402 branch August 25, 2018 06:50
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

2 participants