tests: fix coverity scan side effect in assertion issues

4 jobs for coverity-fixes in 1 minute and 2 seconds
Status Name Job ID Coverage
  Container
passed container_fedora #11289663

00:00:25

 
  Build
passed build_on_fedora #11289967

00:00:37

failed build_on_fedora #11289664

00:00:15

failed build_on_fedora #11289767

00:00:14