mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
22
tests/common/net/ib/SetupIB.h
Normal file
22
tests/common/net/ib/SetupIB.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user