Skip to content

Commit 3f63a02

Browse files
authored
Randomize semaphore name for tests (#8385)
1 parent e7b25a7 commit 3f63a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/persqueue/ut/common/autoscaling_ut_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ struct TTestReadSession : public ITestReadSession {
162162
TImpl(const TString& name, bool autoCommit)
163163
: Name(name)
164164
, AutoCommit(autoCommit)
165-
, Semaphore(name.c_str(), SemCount) {}
165+
, Semaphore((TStringBuilder() << name << "::" << RandomNumber<size_t>()).c_str(), SemCount) {}
166166

167167
TString Name;
168168
std::unordered_map<ui32, ui64> Offsets;

0 commit comments

Comments
 (0)