diff options
author | ivanzhukov <[email protected]> | 2022-02-10 16:49:41 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:41 +0300 |
commit | ca3252a147a429eac4ba8221857493c58dcd09b5 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/thread/pool_ut.cpp | |
parent | 0892d79ab411592ad25175c4bdadbcb09b466cf5 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/thread/pool_ut.cpp')
-rw-r--r-- | util/thread/pool_ut.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/thread/pool_ut.cpp b/util/thread/pool_ut.cpp index b44ea9694c6..893770d0c47 100644 --- a/util/thread/pool_ut.cpp +++ b/util/thread/pool_ut.cpp @@ -158,26 +158,26 @@ Y_UNIT_TEST_SUITE(TThreadPoolTest) { queue.Stop(); } - - Y_UNIT_TEST(TestInfoGetters) { + + Y_UNIT_TEST(TestInfoGetters) { TThreadPool queue; - - queue.Start(2, 7); - - UNIT_ASSERT_EQUAL(queue.GetThreadCountExpected(), 2); - UNIT_ASSERT_EQUAL(queue.GetThreadCountReal(), 2); - UNIT_ASSERT_EQUAL(queue.GetMaxQueueSize(), 7); - - queue.Stop(); - - queue.Start(4, 1); - - UNIT_ASSERT_EQUAL(queue.GetThreadCountExpected(), 4); - UNIT_ASSERT_EQUAL(queue.GetThreadCountReal(), 4); - UNIT_ASSERT_EQUAL(queue.GetMaxQueueSize(), 1); - - queue.Stop(); - } + + queue.Start(2, 7); + + UNIT_ASSERT_EQUAL(queue.GetThreadCountExpected(), 2); + UNIT_ASSERT_EQUAL(queue.GetThreadCountReal(), 2); + UNIT_ASSERT_EQUAL(queue.GetMaxQueueSize(), 7); + + queue.Stop(); + + queue.Start(4, 1); + + UNIT_ASSERT_EQUAL(queue.GetThreadCountExpected(), 4); + UNIT_ASSERT_EQUAL(queue.GetThreadCountReal(), 4); + UNIT_ASSERT_EQUAL(queue.GetMaxQueueSize(), 1); + + queue.Stop(); + } void TestFixedThreadName(IThreadPool& pool, const TString& expectedName) { pool.Start(1); |