diff options
Diffstat (limited to 'server/TetherControllerTest.cpp')
| -rw-r--r-- | server/TetherControllerTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TetherControllerTest.cpp b/server/TetherControllerTest.cpp index 969cbcd4..309a6d52 100644 --- a/server/TetherControllerTest.cpp +++ b/server/TetherControllerTest.cpp @@ -428,7 +428,8 @@ TEST_F(TetherControllerTest, TestGetTetherStats) { // Token unit test of the fact that we return the stats in the error message which the caller // ignores. - std::string expectedError = counters; + // Skip header since we only saved the last line we parsed. + std::string expectedError = counterLines[2]; std::string err = result.status().msg(); ASSERT_LE(expectedError.size(), err.size()); EXPECT_TRUE(std::equal(expectedError.rbegin(), expectedError.rend(), err.rbegin())); |
