This test uses SynchrounousQueue to get synchronized results of timeout. The problem could be the queue offer can happen before there is actually some thread requesting the queue with its poll method. This could cause the test to fail.