单元测试报错
Closed this issue · 2 comments
环境:
Ubuntu 18.04.1 LTS
gcc版本:
gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1~18.04.1)
单元测试报错信息如下,请帮忙分析下是什么原因,谢谢!
`ubuntu@VM-0-16-ubuntu:~/c++/asyncio/build/test/ut$ ./asyncio_ut
this is a void value
Task C: Compute factorial(4), currently i=2...
Task B: Compute factorial(3), currently i=2...
Task A: Compute factorial(2), currently i=2...
Task C: Compute factorial(4), currently i=3...
Task B: Compute factorial(3), currently i=3...
Task A: factorial(2) = 2
Task C: Compute factorial(4), currently i=4...
Task B: factorial(3) = 6
Task C: factorial(4) = 24
Task B: Compute factorial(3), currently i=2...
Task A: Compute factorial(2), currently i=2...
this is a void value
Task C: Compute factorial(4), currently i=2...
Task B: Compute factorial(3), currently i=3...
Task A: factorial(2) = 2
Task C: Compute factorial(4), currently i=3...
Task B: factorial(3) = 6
Task C: Compute factorial(4), currently i=4...
Task C: factorial(4) = 24
Task B: Compute factorial(3), currently i=2...
Task A: Compute factorial(2), currently i=2...
Task B: Compute factorial(3), currently i=3...
Task A: factorial(2) = 2
Task B: factorial(3) = 6
Task B: Compute factorial(3), currently i=2...
wait_duration finished
asyncio_ut is a Catch v3.0.0-preview.3 host application.
Run with -? for options
Randomness seeded to: 1868188266
-------------------------------------------------------------------------------
Scenario: test timeout
wait_for with gather
-------------------------------------------------------------------------------
/home/ubuntu/c++/asyncio/test/ut/task_test.cpp:275
...............................................................................
/home/ubuntu/c++/asyncio/test/ut/task_test.cpp:278: FAILED:
REQUIRE_NOTHROW( co_await wait_for(gather(sleep(10ms), sleep(20ms), sleep(30ms)), 50ms) )
due to unexpected exception with message:
TimeoutError
===============================================================================
test cases: 11 | 10 passed | 1 failed
assertions: 96 | 95 passed | 1 failed`
拿最新的已经可以跑过了,谢谢!