summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/error/unittests/error_code_ut.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/library/cpp/yt/error/unittests/error_code_ut.cpp b/library/cpp/yt/error/unittests/error_code_ut.cpp
index 833982ea020..807cf0b650c 100644
--- a/library/cpp/yt/error/unittests/error_code_ut.cpp
+++ b/library/cpp/yt/error/unittests/error_code_ut.cpp
@@ -40,10 +40,9 @@ namespace NInternalLittleWorld {
////////////////////////////////////////////////////////////////////////////////
YT_DEFINE_ERROR_ENUM(
- ((A) (-1))
- ((B) (-2))
- ((C) (-3))
- ((D) (-4))
+ ((A) (-2))
+ ((B) (-3))
+ ((C) (-4))
);
////////////////////////////////////////////////////////////////////////////////
@@ -94,7 +93,7 @@ TEST(TErrorCodeRegistryTest, Basic)
#endif
EXPECT_EQ(
TErrorCodeRegistry::Get()->Get(-3),
- (TErrorCodeRegistry::TErrorCodeInfo{"NYT::NInternalLittleWorld", "C"}));
+ (TErrorCodeRegistry::TErrorCodeInfo{"NYT::NInternalLittleWorld", "B"}));
EXPECT_EQ(
TErrorCodeRegistry::Get()->Get(-33),
(TErrorCodeRegistry::TErrorCodeInfo{"NExternalWorld", "Z"}));