aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dcherednik@ydb.tech>2023-12-13 18:27:38 +0300
committerdcherednik <dcherednik@ydb.tech>2023-12-13 21:24:23 +0300
commit2f05d43c1c4c3a74e60c23558a372e2e891c056d (patch)
treef9e118ee61fac98a6474e86bb05f96c21f3df911
parent0a988ab570eb772cd7f95c49b811e9d2cda545f2 (diff)
downloadydb-2f05d43c1c4c3a74e60c23558a372e2e891c056d.tar.gz
Fix fluky test. We can get CLIENT_CANCELED status at driver shutdown.…
Fix fluky test. We can get CLIENT_CANCELED status at driver shutdown.… Pull Request resolved: https://github.com/ydb-platform/ydb/pull/511
-rw-r--r--ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp b/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
index d22ead7168..cdc005a1b1 100644
--- a/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
+++ b/ydb/services/ydb/sdk_credprovider_ut/dummy_provider_ut.cpp
@@ -28,7 +28,10 @@ class TExampleDummyProviderFactory : public ICredentialsProviderFactory {
return false;
auto responseCb = [this](Draft::Dummy::PingResponse* resp, TPlainStatus status) -> void {
- UNIT_ASSERT(status.Ok());
+ if (status.Status == EStatus::CLIENT_CANCELLED)
+ return;
+
+ UNIT_ASSERT_C(status.Ok(), status.Status);
UNIT_ASSERT_VALUES_EQUAL(resp->payload(), "abc");
(*RunCnt)++;
};