Skip to content

Commit 56c805e

Browse files
committed
Apply comments
1 parent e9186e3 commit 56c805e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/config/validation/auth_config_validator_ut/auth_config_validator_ut.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Y_UNIT_TEST_SUITE(AuthConfigValidation) {
1919
std::vector<TString> error;
2020
EValidationResult result = ValidateAuthConfig(authConfig, error);
2121
UNIT_ASSERT_EQUAL(result, EValidationResult::Ok);
22-
UNIT_ASSERT_C(error.empty(), "Should not be errors");
22+
UNIT_ASSERT_C(error.empty(), error.front());
2323
}
2424

2525
Y_UNIT_TEST(CannotAcceptInvalidPasswordComplexity) {
@@ -51,7 +51,7 @@ Y_UNIT_TEST_SUITE(AuthConfigValidation) {
5151
std::vector<TString> error;
5252
EValidationResult result = ValidateAuthConfig(authConfig, error);
5353
UNIT_ASSERT_EQUAL(result, EValidationResult::Ok);
54-
UNIT_ASSERT_C(error.empty(), "Should not be errors");
54+
UNIT_ASSERT_C(error.empty(), error.front());
5555
}
5656

5757
{
@@ -60,7 +60,7 @@ Y_UNIT_TEST_SUITE(AuthConfigValidation) {
6060
std::vector<TString> error;
6161
EValidationResult result = ValidateAuthConfig(authConfig, error);
6262
UNIT_ASSERT_EQUAL(result, EValidationResult::Ok);
63-
UNIT_ASSERT_C(error.empty(), "Should not be errors");
63+
UNIT_ASSERT_C(error.empty(), error.front());
6464
}
6565

6666
{
@@ -69,7 +69,7 @@ Y_UNIT_TEST_SUITE(AuthConfigValidation) {
6969
std::vector<TString> error;
7070
EValidationResult result = ValidateAuthConfig(authConfig, error);
7171
UNIT_ASSERT_EQUAL(result, EValidationResult::Ok);
72-
UNIT_ASSERT_C(error.empty(), "Should not be errors");
72+
UNIT_ASSERT_C(error.empty(), error.front());
7373
}
7474
}
7575

0 commit comments

Comments
 (0)