Merge pull request #1015 from yuyuyu101/wip-fix-tests

Fix some test codes problems

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-12-29 20:44:13 -08:00
commit 9a7e85dba1
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ ceph osd tier remove base_pool empty_cache
ceph osd pool delete base_pool base_pool --yes-i-really-really-mean-it
ceph osd pool delete empty_cache empty_cache --yes-i-really-really-mean-it
ceph osd pool delete wrong_cache wrong_cache --yes-i-really-really-mean-it
ceph osd pool delete partial_cache partial_cache --yes-i-really-really-mean-it
ceph osd pool delete partial_wrong partial_wrong --yes-i-really-really-mean-it
## set of base, cache
ceph osd pool create base 8
@ -131,6 +131,6 @@ ceph osd tier cache-mode cache none
ceph osd tier remove base cache
ceph osd pool delete cache cache --yes-i-really-really-mean-it
ceph osd pool delete cache base --yes-i-really-really-mean-it
ceph osd pool delete base base --yes-i-really-really-mean-it
echo OK
echo OK

View File

@ -751,7 +751,7 @@ TEST_F(StoreTest, XattrTest) {
ASSERT_EQ(r, -ENODATA);
r = store->getattr(cid, hoid, "attr3", bp);
ASSERT_EQ(r, 0);
ASSERT_GE(r, 0);
bufferlist bl2;
bl2.push_back(bp);
ASSERT_TRUE(bl2 == attrs["attr3"]);