aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/ut/config_ut.cpp
blob: 780a57f3f25ed6803d115da0abd5e69db7a68b32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}