Fix of JENKINS-8408 broke some tests of workspace-based polling; disable the fix when inside a test, for better predictability.
(Ideally Jenkins would actually detect whether there was a *plan* to connect a slave of a given name.)