updates: replace assert with proper check

4 jobs for master
Status Job ID Name Coverage
  External
canceled test

passed test-2

passed test

canceled test-2