ref: 21c1c024418cb2978edabf398f0119e616bf8abf
parent: 8eb4de10a2c619db02fb98ce51b3fd3bf1d251c8
parent: d46cd075110149265df58d10eb5b1f62d20ad428
author: HaiboZhu <haibozhu@cisco.com>
date: Tue Jan 19 10:39:17 EST 2016
Merge pull request #2334 from sijchen/fix_ut [UT] fix the prob in case that the task uID is too big
--- a/test/common/WelsThreadPoolTest.cpp
+++ b/test/common/WelsThreadPoolTest.cpp
@@ -24,7 +24,8 @@
}
virtual int32_t Execute() {
- WelsSleep (300 - m_uiID);
+ uint32_t uiSleepTime = (m_uiID > 99) ? 10 : m_uiID;
+ WelsSleep (uiSleepTime);
//printf ("Task %d executing\n", m_uiID);
return cmResultSuccess;
}