Skip to content

Commit b2ed70e

Browse files
ubytegithub-actions[bot]
authored andcommitted
TopicSdkTestSetup: fix CreateTopic waiting for the different topic (#24000)
1 parent 066869f commit b2ed70e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
34ff5ffba03b65c7506f668b411b5d318b821963
1+
9563c7b171619687436257273b34ceba261903ed

src/client/topic/ut/basic_usage_ut.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ void WriteAndReadToEndWithRestarts(TReadSessionSettings readSettings, TWriteSess
101101
}
102102

103103
Y_UNIT_TEST_SUITE(BasicUsage) {
104+
Y_UNIT_TEST(CreateTopicWithCustomName) {
105+
TTopicSdkTestSetup setup{TEST_CASE_NAME, TTopicSdkTestSetup::MakeServerSettings(), false};
106+
const TString name = "test-topic-" + ToString(TInstant::Now().Seconds());
107+
setup.CreateTopic(name, TEST_CONSUMER, 1);
108+
}
109+
104110
Y_UNIT_TEST(ReadWithoutConsumerWithRestarts) {
105111
if (EnableDirectRead) {
106112
// TODO(qyryq) Enable the test when LOGBROKER-9364 is done.

src/client/topic/ut/ut_utils/topic_sdk_test_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void TTopicSdkTestSetup::CreateTopic(const std::string& name, const std::string&
3636
{
3737
ITopicTestSetup::CreateTopic(name, consumer, partitionCount, maxPartitionCount, retention, important);
3838

39-
Server_.WaitInit(GetTopicPath());
39+
Server_.WaitInit(GetTopicPath(name));
4040
}
4141

4242
TConsumerDescription TTopicSdkTestSetup::DescribeConsumer(const std::string& name, const std::string& consumer)

0 commit comments

Comments
 (0)