File tree Expand file tree Collapse file tree 3 files changed +89
-85
lines changed Expand file tree Collapse file tree 3 files changed +89
-85
lines changed Original file line number Diff line number Diff 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+
3639std::string TTopicTestFixture::GetEndpoint () const {
3740 auto endpoint = std::getenv (" YDB_ENDPOINT" );
3841 Y_ENSURE_BT (endpoint, " YDB_ENDPOINT is not set" );
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ extern const bool EnableDirectRead;
1414class TTopicTestFixture : public ::testing::Test, public ITopicTestSetup {
1515public:
1616 void SetUp () override ;
17+ void TearDown () override ;
1718
1819 std::string GetEndpoint () const override ;
1920 std::string GetDatabase () const override ;
You can’t perform that action at this time.
0 commit comments