with this code you specified you return earlier then raising an exception also check where the future.fail will lead. it jump into asyncCheck or something that awaits a coroutine and exception will be raised without emiting nimTestErrorFlag
remove error checking part
if err != 0:
return fut.fail()
Run
and leave only the code below
