mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
22 lines
527 B
C++
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
|