test(server): Run all unit tests with --force_epoll (#1672)

This commit is contained in:
Shahar Mike 2023-08-09 11:00:46 +03:00 committed by GitHub
parent db3721b6e2
commit 3779837c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -127,7 +127,11 @@ void BaseFamilyTest::SetUpTestSuite() {
init_zmalloc_threadlocal(mi_heap_get_backing());
// TODO: go over all env variables starting with FLAGS_ and make sure they are in the below list.
static constexpr const char* kEnvFlags[] = {"cluster_mode", "lock_on_hashtags"};
static constexpr const char* kEnvFlags[] = {
"cluster_mode",
"lock_on_hashtags",
"force_epoll",
};
for (string_view flag : kEnvFlags) {
const char* value = getenv(absl::StrCat("FLAGS_", flag).data());
if (value != nullptr) {