How long did you wait?
It should only be stuck for the timeout length, which is typically 30s.
You could add a little more too it to manipulate the timeout, like:
Code: Select all
var repo = TestRepository.Instance;
var microTorrent331 = repo.MicroTorrent331;
//Save the old duration...
Duration oldDur = microTorrent331.SearchTimeout;
//Set the new, temp duration...
microTorrent331.SearchTimeout = new Duration(500); //500 ms, 1/2 sec.
if(microTorrent331.SelfInfo.Exists())
{
Report.Info(microTorrent331.SelfInfo.Exists().ToString());
}
//Reset the original duration
microTorrent331.SearchTimeout = oldDur;
That would set a temporary 1/2 second timeout, and then set it back.
EDIT: You may need to use the INFO object again to get and set the search timeout, it depends on your repo structure.
Shortcuts usually aren't...