aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/gtest/matchers.cpp
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-10 15:37:02 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-10 15:37:02 +0300
commit394219e982f65dd1ab4e4511051f4c97011c8712 (patch)
treed6a9c3984d7bac6e9564fa451bd28d6edcc063e3 /library/cpp/testing/gtest/matchers.cpp
parent7d576663c816bfaa02dcce5b6dfb8cfc3c7dec67 (diff)
downloadydb-394219e982f65dd1ab4e4511051f4c97011c8712.tar.gz
Add GetPort(port) support to maintain compatibility with unittest TPortManager
Singleton did not allow reinitialisation, so in existing tests this line https://a.yandex-team.ru/arcadia/library/cpp/testing/common/ut/network_ut.cpp?rev=rXXXXXX#L45 did not have any effect. The tests worked just because in both tests the env var PORT_SYNC_PATH was the same and its changes did not affect the tests anyway. As we need to change the env var NO_RANDOM_PORTS to run GetPort( port ) test, I had to make a reinitialisation method, which is now being called from inside the constructor, causing its double invocation during the tests. I could not find a better solution for Singleton(
Diffstat (limited to 'library/cpp/testing/gtest/matchers.cpp')
0 files changed, 0 insertions, 0 deletions