Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
cd9fbaeb
Commit
cd9fbaeb
authored
Oct 30, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timeout so that jasmine tests eventually fail if the server doesn't start
parent
e8be6b31
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
cms/envs/common.py
+1
-0
lms/envs/common.py
+1
-0
rakefile
+4
-0
No files found.
cms/envs/common.py
View file @
cd9fbaeb
...
@@ -35,6 +35,7 @@ MITX_FEATURES = {
...
@@ -35,6 +35,7 @@ MITX_FEATURES = {
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
}
}
ENABLE_JASMINE
=
False
# needed to use lms student app
# needed to use lms student app
GENERATE_RANDOM_USER_CREDENTIALS
=
False
GENERATE_RANDOM_USER_CREDENTIALS
=
False
...
...
lms/envs/common.py
View file @
cd9fbaeb
...
@@ -30,6 +30,7 @@ from .discussionsettings import *
...
@@ -30,6 +30,7 @@ from .discussionsettings import *
################################### FEATURES ###################################
################################### FEATURES ###################################
COURSEWARE_ENABLED
=
True
COURSEWARE_ENABLED
=
True
ENABLE_JASMINE
=
False
GENERATE_RANDOM_USER_CREDENTIALS
=
False
GENERATE_RANDOM_USER_CREDENTIALS
=
False
PERFSTATS
=
False
PERFSTATS
=
False
...
...
rakefile
View file @
cd9fbaeb
...
@@ -48,7 +48,11 @@ def django_for_jasmine(system)
...
@@ -48,7 +48,11 @@ def django_for_jasmine(system)
puts
django_pid
puts
django_pid
jasmine_url
=
'http://localhost:12345/_jasmine/'
jasmine_url
=
'http://localhost:12345/_jasmine/'
up
=
false
up
=
false
start_time
=
Time
.
now
until
up
do
until
up
do
if
Time
.
now
-
start_time
>
30
abort
"Timed out waiting for server to start to run jasmine tests"
end
begin
begin
response
=
Net
::
HTTP
.
get_response
(
URI
(
jasmine_url
))
response
=
Net
::
HTTP
.
get_response
(
URI
(
jasmine_url
))
puts
response
.
code
puts
response
.
code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment