debug occasional error in test_queue_status

this shouldn't actually fix the bug, just provide more information the next time it fails.
Merge pull request #5291 from minrk/debug-queue-status

debug occasional error in test_queue_status