mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
TestOSDMap: actually loop through the pools as intended
Looks like this was meant to be a loop but (unlike the other tests) just referred to a constant pool 0. Whoops! Signed-off-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
parent
ae06a6aee7
commit
760a024a75
@ -365,7 +365,7 @@ TEST_F(OSDMapTest, PrimaryAffinity) {
|
||||
vector<int> any(n, 0);
|
||||
vector<int> first(n, 0);
|
||||
vector<int> primary(n, 0);
|
||||
test_mappings(0, 10000, &any, &first, &primary);
|
||||
test_mappings(pool, 10000, &any, &first, &primary);
|
||||
for (int i=0; i<n; ++i) {
|
||||
ASSERT_LT(0, any[i]);
|
||||
ASSERT_LT(0, first[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user