Adding the functionality to test cancelling repodiscovery.
Merge pull request #641 from blrm/repo-cancel

Adding the functionality to test cancelling repodiscovery.