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

tests: use a fixture for memstore clone testing #11190

Merged
merged 3 commits into from Sep 22, 2016

Conversation

tchaikov
Copy link
Contributor

No description provided.

…re.cc

so it can be reused by other tests like test_memstore_clone.

Signed-off-by: Kefu Chai <kchai@redhat.com>
so it will issues a fatal error if anything goes wrong, instead of continuing
with the test cases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
rename test case name from `MemStore` to `MemStoreClone`, because
if we use `TEST_F` to group the tests into a fixture, `MemStore`
will be used as the class name of the fixture, and hence conflicts
with the existing `MemStore` class under testing.

but the object store is created and destroyed for every test. before
this change, we do this for every test case. if it's a concern
we need to use SetUpTestCase() and TearDownTestCase() instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@cbodley
Copy link
Contributor

cbodley commented Sep 22, 2016

@tchaikov you, sir, are the coolest. this looks much better. tested and working for me, and jenkins is happy with it too 121/150 Test #128: unittest_memstore_clone ................. Passed 0.40 sec

thanks!

@cbodley cbodley merged commit 3bb268a into ceph:master Sep 22, 2016
@tchaikov tchaikov deleted the wip-memstore-clone-fixture branch September 23, 2016 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants