test: fix epollex error on macOS
@@ -43,8 +43,9 @@ pub fn setup_for_ci() {
tikv::util::set_panic_hook(true, "./");
}
- // HACK! Always use epollex in tests.
+ // HACK! Always use epollex in tests on Linux.
// See more: https://github.com/grpc/grpc/blob/v1.17.2/src/core/lib/iomgr/ev_posix.cc#L124
+ #[cfg(target_os = "linux")]
env::set_var("GRPC_POLL_STRATEGY", "epollex");
tikv::util::check_environment_variables();
