aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/future/future_ut.cpp
diff options
context:
space:
mode:
authorkikht <kikht@yandex-team.ru>2022-02-10 16:45:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:14 +0300
commit194cae0e8855b11be2005e1eff12c660c3ee9774 (patch)
treeed29c437b616690880c017855ebe0be34fdf81a2 /library/cpp/threading/future/future_ut.cpp
parent49116032d905455a7b1c994e4a696afc885c1e71 (diff)
downloadydb-194cae0e8855b11be2005e1eff12c660c3ee9774.tar.gz
Restoring authorship annotation for <kikht@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading/future/future_ut.cpp')
-rw-r--r--library/cpp/threading/future/future_ut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/threading/future/future_ut.cpp b/library/cpp/threading/future/future_ut.cpp
index 05950a568d..63fb4604be 100644
--- a/library/cpp/threading/future/future_ut.cpp
+++ b/library/cpp/threading/future/future_ut.cpp
@@ -507,18 +507,18 @@ namespace {
UNIT_ASSERT(!promise.TrySetValue(42));
}
- Y_UNIT_TEST(HandlingRepetitiveSetException) {
- TPromise<int> promise = NewPromise<int>();
- promise.SetException("test");
- UNIT_CHECK_GENERATED_EXCEPTION(promise.SetException("test"), TFutureException);
- }
-
- Y_UNIT_TEST(HandlingRepetitiveTrySetException) {
- TPromise<int> promise = NewPromise<int>();
- UNIT_ASSERT(promise.TrySetException(std::make_exception_ptr("test")));
- UNIT_ASSERT(!promise.TrySetException(std::make_exception_ptr("test")));
- }
-
+ Y_UNIT_TEST(HandlingRepetitiveSetException) {
+ TPromise<int> promise = NewPromise<int>();
+ promise.SetException("test");
+ UNIT_CHECK_GENERATED_EXCEPTION(promise.SetException("test"), TFutureException);
+ }
+
+ Y_UNIT_TEST(HandlingRepetitiveTrySetException) {
+ TPromise<int> promise = NewPromise<int>();
+ UNIT_ASSERT(promise.TrySetException(std::make_exception_ptr("test")));
+ UNIT_ASSERT(!promise.TrySetException(std::make_exception_ptr("test")));
+ }
+
Y_UNIT_TEST(ShouldAllowToMakeFutureWithException)
{
auto future1 = MakeErrorFuture<void>(std::make_exception_ptr(TFutureException()));