Permalink
Browse files

Ignore the socket timeout error in Selenium test

Change-Id: I00b619bd27a8fa20b3c9d2c27a80514f2ae0d307
  • Loading branch information...
1 parent 8734ea4 commit 20bfac6d2a3ea98fadebd116432fb0d46f426a14 @jpichon jpichon committed Nov 26, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 openstack_dashboard/dashboards/admin/users/tests.py
@@ -18,6 +18,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+from socket import timeout as socket_timeout
+
from django import http
from django.core.urlresolvers import reverse
@@ -374,7 +376,8 @@ def test_modal_create_user_with_passwords_not_matching(self):
# Open the modal menu
self.selenium.find_element_by_id("users__action_create") \
.send_keys("\n")
- wait = self.ui.WebDriverWait(self.selenium, 10)
+ wait = self.ui.WebDriverWait(self.selenium, 10,
+ ignored_exceptions=[socket_timeout])
wait.until(lambda x: self.selenium.find_element_by_id("id_name"))
body = self.selenium.find_element_by_tag_name("body")

0 comments on commit 20bfac6

Please sign in to comment.