Add timeout so that jasmine tests eventually fail if the server doesn't start
This commit is contained in:
@@ -35,6 +35,7 @@ MITX_FEATURES = {
|
||||
'ENABLE_DISCUSSION_SERVICE': False,
|
||||
'AUTH_USE_MIT_CERTIFICATES' : False,
|
||||
}
|
||||
ENABLE_JASMINE = False
|
||||
|
||||
# needed to use lms student app
|
||||
GENERATE_RANDOM_USER_CREDENTIALS = False
|
||||
|
||||
@@ -30,6 +30,7 @@ from .discussionsettings import *
|
||||
|
||||
################################### FEATURES ###################################
|
||||
COURSEWARE_ENABLED = True
|
||||
ENABLE_JASMINE = False
|
||||
GENERATE_RANDOM_USER_CREDENTIALS = False
|
||||
PERFSTATS = False
|
||||
|
||||
|
||||
4
rakefile
4
rakefile
@@ -48,7 +48,11 @@ def django_for_jasmine(system)
|
||||
puts django_pid
|
||||
jasmine_url = 'http://localhost:12345/_jasmine/'
|
||||
up = false
|
||||
start_time = Time.now
|
||||
until up do
|
||||
if Time.now - start_time > 30
|
||||
abort "Timed out waiting for server to start to run jasmine tests"
|
||||
end
|
||||
begin
|
||||
response = Net::HTTP.get_response(URI(jasmine_url))
|
||||
puts response.code
|
||||
|
||||
Reference in New Issue
Block a user