Change if to while in statelessTest
Change if to while in statelessTest


Former-commit-id: a6bc4f18c61573822260fcb97792c2ba97c2a767
eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-DDS