diff options
| author | nadya73 <[email protected]> | 2024-07-02 23:10:50 +0300 |
|---|---|---|
| committer | nadya73 <[email protected]> | 2024-07-02 23:21:03 +0300 |
| commit | 5ea9afc5ee7edc24efa5f45b3a15e184872b0854 (patch) | |
| tree | 4ccc339d97575cba8b3ed47b6f0615326bdb5324 /yt/cpp/mapreduce/interface/ut/config_ut.cpp | |
| parent | 96b239778766d32d5158aca805e08199b3c0a743 (diff) | |
[yt/cpp/mapreduce] YT-21595: Use gtest instead of ytest in all mapreduce tests
85671f0cf4f45b4f015fa2cc0d195b81c16c6e8a
Diffstat (limited to 'yt/cpp/mapreduce/interface/ut/config_ut.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/interface/ut/config_ut.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/ut/config_ut.cpp b/yt/cpp/mapreduce/interface/ut/config_ut.cpp new file mode 100644 index 00000000000..780a57f3f25 --- /dev/null +++ b/yt/cpp/mapreduce/interface/ut/config_ut.cpp @@ -0,0 +1,17 @@ +#include <library/cpp/testing/gtest/gtest.h> + +#include <yt/cpp/mapreduce/interface/config.h> + +using namespace NYT; + +TEST(TConfigTest, Reset) { + // Very limited test, checks only one config field. + + auto origConfig = *TConfig::Get(); + TConfig::Get()->Reset(); + EXPECT_EQ(origConfig.Hosts, TConfig::Get()->Hosts); + + TConfig::Get()->Hosts = "hosts/fb867"; + TConfig::Get()->Reset(); + EXPECT_EQ(origConfig.Hosts, TConfig::Get()->Hosts); +} |
