MULE-8094: fix flacky test
Merge pull request #1205 from mulesoft/MULE-8094

MULE-8094: fix flacky test