Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
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
cs_comments_service
Commits
7fc690b5
Commit
7fc690b5
authored
Jul 02, 2013
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad timings
parent
3c17dd02
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app.rb
+2
-2
lib/tasks/deep_search.rake
+2
-2
No files found.
app.rb
View file @
7fc690b5
...
@@ -49,8 +49,8 @@ DEFAULT_PER_PAGE = 20
...
@@ -49,8 +49,8 @@ DEFAULT_PER_PAGE = 20
if
RACK_ENV
.
to_s
!=
"test"
# disable api_key auth in test environment
if
RACK_ENV
.
to_s
!=
"test"
# disable api_key auth in test environment
before
do
before
do
#duct tape to avoid 401 on deep search performance test
#duct tape to avoid 401 on deep search performance test
#
error 401 unless params[:api_key] == CommentService.config[:api_key] or true
error
401
unless
params
[
:api_key
]
==
CommentService
.
config
[
:api_key
]
or
true
error
401
unless
params
[
:api_key
]
==
CommentService
.
config
[
:api_key
]
#
error 401 unless params[:api_key] == CommentService.config[:api_key]
end
end
end
end
...
...
lib/tasks/deep_search.rake
View file @
7fc690b5
...
@@ -62,8 +62,8 @@ namespace :deep_search do
...
@@ -62,8 +62,8 @@ namespace :deep_search do
RestClient
.
get
"
#{
PREFIX
}
/threads"
,
params:
query_params
RestClient
.
get
"
#{
PREFIX
}
/threads"
,
params:
query_params
end
end
end_time
=
Time
.
now
end_time
=
Time
.
now
puts
"Ending test at
#{
start
_time
}
"
puts
"Ending test at
#{
end
_time
}
"
puts
"Total Time:
#{
(
end_time
=
start_time
)
*
1
.
days
}
"
puts
"Total Time:
#{
(
end_time
-
start_time
).
to_f
}
seconds
"
end
end
...
...
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