test fix on TemporaryQueueTest

The test is now closing connections at the end. the previous assertion needed to be adapted
Merge pull request #1897 from clebertsuconic/2.4.x

test fix on TemporaryQueueTest