SpringSource/spring-integration — pull request #425 by garyrussell (2012-05-08 19:15:31+00:00)
Title: INT-2519 Fix Failing Test 2.1.x Backport

Depending on timing, it was possible the event the test
case was waiting for would never happen. With no timeout
the selector will block until the next IO event occurs,
and there is none in this test.

Adding a call to factory.close() forces a wakeup of
the selector, which will force the harvest to occur.

This is a test-only problem.