It's post probably caused by XWIKI-23494 (at least XWIKI-23494 can definitely randomly cause this test to fail).
Actually, it it is indeed a possible cause of flicker, it's apparently not the only one as it was reproduced again after the fix.