Fix some uses of sleep, comment the rest
[civicrm-core.git] / tests / phpunit / WebTest / Member / OfflineAutoRenewMembershipTest.php
index 3a7210e633ce34f0feba85a654872b1fd90415a9..9b8e03819d5464cd836b07b926d8125bad909a50 100644 (file)
@@ -85,6 +85,9 @@ class WebTest_Member_OfflineAutoRenewMembershipTest extends CiviSeleniumTestCase
     // since country is not pre-selected for offline mode
     $this->select("billing_country_id-5", "label=United States");
     //wait for states to populate the select box
+    // Because it tends to cause problems, all uses of sleep() must be justified in comments
+    // Sleep should never be used for wait for anything to load from the server
+    // Justification for this instance: FIXME
     sleep(2);
     $this->click('billing_state_province_id-5');
     $this->webtestAddBillingDetails($firstName, NULL, $lastName);