Skip to content

Commit

Permalink
Fix unstable ut in the master branch (#5024)
Browse files Browse the repository at this point in the history
close #5023
  • Loading branch information
hehechen authored May 27, 2022
1 parent d1ecebd commit 7dff463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/TestUtils/TiFlashTestEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Context TiFlashTestEnv::getContext(const DB::Settings & settings, Strings testda
Context context = *global_context;
context.setGlobalContext(*global_context);
// Load `testdata_path` as path if it is set.
const String root_path = testdata_path.empty() ? getTemporaryPath() : testdata_path[0];
const String root_path = testdata_path.empty() ? (DB::toString(getpid()) + "/" + getTemporaryPath()) : testdata_path[0];
if (testdata_path.empty())
testdata_path.push_back(root_path);
context.setPath(root_path);
Expand Down

0 comments on commit 7dff463

Please sign in to comment.