Skip to content

Commit 48a2837

Browse files
committed
1 parent aaace33 commit 48a2837

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
3+
#include "worker.h"
4+
5+
namespace NKikimr::NReplication::NService {
6+
7+
struct TRecord: public TEvWorker::TEvData::TRecord {
8+
explicit TRecord(ui64 offset, const TString& data)
9+
: TEvWorker::TEvData::TRecord(offset, data, TInstant::Zero(), "MessageGroupId", "ProducerId", 42)
10+
{}
11+
};
12+
13+
}

ydb/core/tx/replication/service/table_writer_ut.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "service.h"
22
#include "table_writer.h"
3-
#include "worker.h"
3+
#include "common_ut.h"
44

55
#include <ydb/core/tx/datashard/ut_common/datashard_ut_common.h>
66
#include <ydb/core/tx/replication/ut_helpers/test_env.h>
@@ -17,10 +17,6 @@ namespace NKikimr::NReplication::NService {
1717
Y_UNIT_TEST_SUITE(LocalTableWriter) {
1818
using namespace NTestHelpers;
1919

20-
TEvWorker::TEvData::TRecord TRecord(ui64 offset, const TString& data) {
21-
return TEvWorker::TEvData::TRecord(offset, data, TInstant::Zero(), "MessageGroupId", "ProducerId", 13 /* seqNo */);
22-
}
23-
2420
Y_UNIT_TEST(WriteTable) {
2521
TEnv env;
2622
env.GetRuntime().SetLogPriority(NKikimrServices::REPLICATION_SERVICE, NLog::PRI_DEBUG);

ydb/core/tx/replication/service/transfer_writer_ut.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "service.h"
22
#include "transfer_writer.h"
3-
#include "worker.h"
3+
#include "common_ut.h"
44

55
#include <ydb/core/fq/libs/row_dispatcher/purecalc_compilation/compile_service.h>
66
#include <ydb/core/tx/datashard/ut_common/datashard_ut_common.h>
@@ -18,10 +18,6 @@ namespace NKikimr::NReplication::NService {
1818
Y_UNIT_TEST_SUITE(TransferWriter) {
1919
using namespace NTestHelpers;
2020

21-
TEvWorker::TEvData::TRecord TRecord(ui64 offset, const TString& data) {
22-
return TEvWorker::TEvData::TRecord(offset, data, TInstant::Zero(), "MessageGroupId", "ProducerId", 13 /* seqNo */);
23-
}
24-
2521
Y_UNIT_TEST(Write_ColumnTable) {
2622
TEnv env;
2723
env.GetRuntime().SetLogPriority(NKikimrServices::REPLICATION_SERVICE, NLog::PRI_DEBUG);

0 commit comments

Comments
 (0)