tests: Improve flakyness of test_processes_memory_cpu (#6182)

Co-authored-by: Marek Cirkos <marekcirkos@users.noreply.github.com>
This commit is contained in:
Teddy Reed 2020-01-18 19:03:59 -05:00 committed by GitHub
parent 0d779a7160
commit afaaac6d18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,11 +144,11 @@ TEST_F(SystemsTablesTests, test_processes_memory_cpu) {
// Now we expect the running test to use over 1M of RSS.
bytes = bytes / (1024 * 1024);
EXPECT_GT(bytes, 1U);
EXPECT_GE(bytes, 1U);
bytes = std::stoll(results.rows()[0].at("total_size"), 0, 0);
bytes = bytes / (1024 * 1024);
EXPECT_GT(bytes, 1U);
EXPECT_GE(bytes, 1U);
// Make sure user/system time are in seconds, pray we haven't actually used
// more than 100 seconds of CPU.