Sauce can only connect on certain ports
This commit is contained in:
@@ -18,7 +18,12 @@ DEBUG = True
|
||||
import logging
|
||||
logging.disable(logging.ERROR)
|
||||
import os
|
||||
import random
|
||||
from random import choice
|
||||
PORTS = [80, 443, 888, 2000, 2001, 2020, 2109, 2222, 2310, 3000, 3001,
|
||||
3030, 3210, 3333, 4000, 4001, 4040, 4321, 4502, 4503, 5000, 5001,
|
||||
5050, 5555, 5432, 6000, 6001, 6060, 6666, 6543, 7000, 7070, 7774,
|
||||
7777, 8000, 8001, 8003, 8031, 8080, 8081, 8765, 8888, 9000, 9001,
|
||||
9080, 9090, 9876, 9999, 49221, 55001]
|
||||
|
||||
|
||||
def seed():
|
||||
@@ -92,11 +97,11 @@ MITX_FEATURES['SAUCE'] = {
|
||||
'DEVICE' : '',
|
||||
'SESSION' : 'Lettuce Tests',
|
||||
'BUILD' : 'CMS TESTS',
|
||||
'TAGS' : ''
|
||||
'CUSTOM_TAGS' : {}
|
||||
}
|
||||
|
||||
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
|
||||
INSTALLED_APPS += ('lettuce.django',)
|
||||
LETTUCE_APPS = ('contentstore',)
|
||||
LETTUCE_SERVER_PORT = random.randint(1024, 65535)
|
||||
LETTUCE_SERVER_PORT = choice(PORTS)
|
||||
LETTUCE_BROWSER = 'chrome'
|
||||
|
||||
Reference in New Issue
Block a user