Files
3FS/tests/common/net/ib/SetupIB.h
2025-02-27 21:53:53 +08:00

22 lines
527 B
C++

#pragma once
#include <folly/logging/xlog.h>
#include <gtest/gtest.h>
#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