Skip to content

Commit 458f678

Browse files
committed
Moved timeouts for sketch test into config.py .
1 parent bc09cd1 commit 458f678

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

codebender_testing/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def jsondump(data):
8181

8282
TIMEOUT = {
8383
'LOCATE_ELEMENT': 30,
84-
'FLASH_FAIL': 30
84+
'FLASH_FAIL': 30,
85+
'VERIFY': 30,
86+
'FLASH': 30,
8587
}
8688

8789
DEFAULT_USER_AGENT_FIREFOX = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 codebender-selenium'

tests/common/sketch/test_sketch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from selenium.webdriver.support.ui import WebDriverWait
55
import pytest
66

7-
from codebender_testing.config import TEST_PROJECT_NAME
7+
from codebender_testing.config import TEST_PROJECT_NAME, TIMEOUT
88
from codebender_testing.utils import SeleniumTestCase
99
from codebender_testing.utils import SELECT_BOARD_SCRIPT
1010
from codebender_testing.utils import throttle_compile
1111

1212

1313
# How long to wait before we give up on trying to assess the result of commands
14-
VERIFY_TIMEOUT = 30
15-
FLASH_TIMEOUT = 30
14+
VERIFY_TIMEOUT = TIMEOUT['VERIFY']
15+
FLASH_TIMEOUT = TIMEOUT['FLASH']
1616

1717
# Board to test for the dropdown selector.
1818
TEST_BOARD = "Arduino Fio"

0 commit comments

Comments
 (0)