Open Tanish0019 opened 6 months ago
Hi @xzdandy, I was just playing around with the project and caught this quick fix so thought about contributing back. Currently the build is failing in the Install Evadb package step unrelated to my change. Do you know if this is a known issue or we can trigger a retry maybe? Thanks!
Problem
Unit test suite is broken. (Last run) Broken test -
CMDClientTest::test_evadb_client
Error:RuntimeError: There is no current event loop in thread 'MainThread'
The test runs fine when run individually but fails when whole suite is run together because other asyncio tests update the asyncio loop settings and policies.Solution
Update test class to extend from
IsolatedAsyncioTestCase
which provides better isolation when running multiple asyncio test units.