Skip to content

Commit f28732b

Browse files
committed
test
1 parent f56e19d commit f28732b

File tree

3 files changed

+89
-85
lines changed

3 files changed

+89
-85
lines changed

tests/integration/topic/setup/fixture.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,24 @@ void TTopicTestFixture::SetUp() {
1818
TTopicClient client(MakeDriver());
1919

2020
const testing::TestInfo* const testInfo = testing::UnitTest::GetInstance()->current_test_info();
21-
std::filesystem::path execPath(std::string{GetExecPath()});
2221

2322
std::stringstream topicBuilder;
24-
topicBuilder << std::getenv("YDB_TEST_ROOT") << "/" << execPath.filename().string() << "-"
25-
<< testInfo->test_suite_name() << "-" << testInfo->name() << "/";
23+
topicBuilder << std::getenv("YDB_TEST_ROOT") << "/" << testInfo->test_suite_name() << "-" << testInfo->name() << "/";
2624
TopicPrefix_ = topicBuilder.str();
2725

2826
std::stringstream consumerBuilder;
29-
consumerBuilder << execPath.filename().string() << "-" << testInfo->test_suite_name() << "-" << testInfo->name() << "-";
27+
consumerBuilder << testInfo->test_suite_name() << "-" << testInfo->name() << "-";
3028
ConsumerPrefix_ = consumerBuilder.str();
3129

3230
client.DropTopic(GetTopicPath()).GetValueSync();
3331
CreateTopic();
3432
}
3533

34+
void TTopicTestFixture::TearDown() {
35+
TTopicClient client(MakeDriver());
36+
client.DropTopic(GetTopicPath()).GetValueSync();
37+
}
38+
3639
std::string TTopicTestFixture::GetEndpoint() const {
3740
auto endpoint = std::getenv("YDB_ENDPOINT");
3841
Y_ENSURE_BT(endpoint, "YDB_ENDPOINT is not set");

tests/integration/topic/setup/fixture.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extern const bool EnableDirectRead;
1414
class TTopicTestFixture : public ::testing::Test, public ITopicTestSetup {
1515
public:
1616
void SetUp() override;
17+
void TearDown() override;
1718

1819
std::string GetEndpoint() const override;
1920
std::string GetDatabase() const override;

0 commit comments

Comments
 (0)