Fixed bug in tests for poll_fd and file watcher
Merge pull request #3017 from amitmurthy/amitm

Fixed bug in tests for poll_fd and file watcher