Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update test for RSS
  • Loading branch information
byrnedj committed Jun 27, 2024
commit cd864de6a68f885a3211330011d354b196841fc4
4 changes: 2 additions & 2 deletions cachelib/common/tests/UtilTestsRSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace tests {

TEST(Util, MemRSS) {
for (int i = 0; i < 10; i++) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(1000));

auto val = util::getRSSBytes();
EXPECT_GT(val, 0);
Expand All @@ -42,7 +42,7 @@ TEST(Util, MemRSS) {
std::memset(reinterpret_cast<char*>(ptr), 5, len);
// sleep to let the stat catch up.
/* sleep override */
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
auto newVal = util::getRSSBytes();
EXPECT_GT(newVal, val) << folly::sformat("newVal = {}, val = {}", newVal,
val);
Expand Down