MCPcopy Create free account
hub / github.com/apache/impala / AssertFdsAndDescriptors

Method AssertFdsAndDescriptors

be/src/kudu/util/file_cache-test.cc:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void AssertFdsAndDescriptors(int num_expected_fds,
109 int num_expected_descriptors) {
110 ASSERT_EQ(initial_open_fds_ + num_expected_fds, CountOpenFds());
111
112 // The expiry thread may take some time to run.
113 ASSERT_EVENTUALLY([&]() {
114 ASSERT_EQ(num_expected_descriptors, cache_->NumDescriptorsForTests());
115 });
116 }
117
118 Random rand_;
119 int initial_open_fds_;

Callers 1

TYPED_TESTFunction · 0.80

Calls 2

CountOpenFdsFunction · 0.85

Tested by

no test coverage detected