#pragma once #include #include #include "common/net/ib/IBDevice.h" #include "common/utils/ConfigBase.h" #include "tests/GtestHelpers.h" namespace hf3fs::net::test { class SetupIB : public ::testing::Test { public: static void SetUpTestSuite() { static IBConfig config; auto ib = IBManager::start(config); XLOGF_IF(FATAL, ib.hasError(), "IBManager start failed, result {}", ib.error()); ASSERT_FALSE(IBDevice::all().empty()); } }; } // namespace hf3fs::net::test