]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore: change check order in Allocator_test.
authorIgor Fedotov <ifedotov@suse.com>
Tue, 11 Jun 2019 17:17:54 +0000 (20:17 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 11 Jun 2019 17:17:54 +0000 (20:17 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/test/objectstore/Allocator_test.cc

index 1bf3a7d2dd03159a577f3777ebb246a39f0c2931..2d72ec52e3e88fb03a2a8fa097780ab0ef7f64fb 100644 (file)
@@ -321,9 +321,9 @@ TEST_P(AllocTest, test_alloc_bug_24598)
 
   EXPECT_EQ(static_cast<int64_t>(want_size),
            alloc->allocate(want_size, 0x100000, 0, 0, &tmp));
+  EXPECT_EQ(1u, tmp.size());
   EXPECT_EQ(0x4b00000u, tmp[0].offset);
   EXPECT_EQ(0x200000u, tmp[0].length);
-  EXPECT_EQ(1u, tmp.size());
 }
 
 INSTANTIATE_TEST_SUITE_P(