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:
Greg Farnum 2017-06-06 15:29:15 -07:00 committed by Sage Weil
parent ae06a6aee7
commit 760a024a75

View File

@ -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]);