----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41672/#review114966 -----------------------------------------------------------
src/tests/hierarchical_allocator_tests.cpp (line 2093) <https://reviews.apache.org/r/41672/#comment175808> Making this a separate variable doesn't seem useful. src/tests/hierarchical_allocator_tests.cpp (lines 2096 - 2101) <https://reviews.apache.org/r/41672/#comment175803> I think we should make `i` an `int`, not `unsigned` -- unless we depend on the semantics of unsigned, which we don't. Using `int` is more idiomatic and consistent with the rest of the code base. src/tests/hierarchical_allocator_tests.cpp (line 2101) <https://reviews.apache.org/r/41672/#comment175802> Seems like we can use `foreach` here. src/tests/hierarchical_allocator_tests.cpp (line 2216) <https://reviews.apache.org/r/41672/#comment175804> "Adding a framework" src/tests/hierarchical_allocator_tests.cpp (line 2228) <https://reviews.apache.org/r/41672/#comment175806> Whitespace after the `if`. - Neil Conway On Jan. 18, 2016, 8:22 a.m., Yongqiao Wang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41672/ > ----------------------------------------------------------- > > (Updated Jan. 18, 2016, 8:22 a.m.) > > > Review request for mesos, Adam B, Neil Conway, and Qian Zhang. > > > Bugs: MESOS-4200 > https://issues.apache.org/jira/browse/MESOS-4200 > > > Repository: mesos > > > Description > ------- > > Test case(s) for weights + allocation behavior > > > Diffs > ----- > > src/tests/hierarchical_allocator_tests.cpp > 9362dd306497ba01e0f387c3862456cdcac6f863 > > Diff: https://reviews.apache.org/r/41672/diff/ > > > Testing > ------- > > Make check done: > $ ./src/mesos-tests --gtest_filter=HierarchicalAllocatorTest.UpdateWeight > Source directory: /Users/yqwyq/Desktop/mesos > Build directory: /Users/yqwyq/Desktop/mesos/build > [==========] Running 1 test from 1 test case. > [----------] Global test environment set-up. > [----------] 1 test from HierarchicalAllocatorTest > [ RUN ] HierarchicalAllocatorTest.UpdateWeight > [ OK ] HierarchicalAllocatorTest.UpdateWeight (87 ms) > [----------] 1 test from HierarchicalAllocatorTest (87 ms total) > > [----------] Global test environment tear-down > [==========] 1 test from 1 test case ran. (176 ms total) > [ PASSED ] 1 test. > > > Thanks, > > Yongqiao Wang > >
