mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
25
tests/common/net/TestIOWorker.cc
Normal file
25
tests/common/net/TestIOWorker.cc
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <folly/net/NetworkSocket.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "common/net/IOWorker.h"
|
||||
#include "common/net/Network.h"
|
||||
#include "common/net/Processor.h"
|
||||
#include "common/net/Transport.h"
|
||||
|
||||
namespace hf3fs::net {
|
||||
|
||||
TEST(TestIOWorker, Normal) {
|
||||
CPUExecutorGroup procExecutor(2, "");
|
||||
CPUExecutorGroup ioExecutor(2, "");
|
||||
folly::IOThreadPoolExecutor connExecutor(2);
|
||||
serde::Services serdeServices;
|
||||
Processor::Config processorConfig{};
|
||||
Processor processor(serdeServices, procExecutor, processorConfig);
|
||||
|
||||
IOWorker::Config ioWorkerConfig{};
|
||||
IOWorker ioWorker(processor, ioExecutor, connExecutor, ioWorkerConfig);
|
||||
|
||||
ASSERT_TRUE(ioWorker.start("Test"));
|
||||
}
|
||||
|
||||
} // namespace hf3fs::net
|
||||
Reference in New Issue
Block a user