avoid tests hanging
Merge pull request #822 from clebertsuconic/master-fix

avoid tests hanging