Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
add extra time since the test runs on smaller containers now (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrah-b authored Apr 5, 2017
1 parent e5a6864 commit 2cc136d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django-nonrel/ocl/import_perf_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ yes | python manage.py rebuild_index -a 1 -k 5
end=`date +%s`
runtime=$((end-start))
echo "Took ${runtime} sec to complete import concepts"
if [ $runtime -ge 120 ];
if [ $runtime -ge 250 ];
then
echo >&2 "It has taken longer to import concepts"
exit 1;
Expand All @@ -24,7 +24,7 @@ yes | python manage.py rebuild_index -a 1 -k 5
end=`date +%s`
runtime=$((end-start))
echo "Took ${runtime} sec to complete import mappings"
if [ $runtime -ge 420 ];
if [ $runtime -ge 550 ];
then
echo >&2 "It has taken longer to import mappings"
exit 1;
Expand All @@ -36,7 +36,7 @@ python manage.py import_concepts_to_source --source $SOURCE --token PERF_TEST_TO
end=`date +%s`
runtime=$((end-start))
echo "Took ${runtime} sec to diff import concepts"
if [ $runtime -ge 30 ];
if [ $runtime -ge 60 ];
then
echo >&2 "It has taken longer to re-import concepts"
exit 1;
Expand All @@ -47,7 +47,7 @@ python manage.py import_mappings_to_source --source $SOURCE --token PERF_TEST_TO
end=`date +%s`
runtime=$((end-start))
echo "Took ${runtime} sec to diff import mappings"
if [ $runtime -ge 120 ];
if [ $runtime -ge 60 ];
then
echo >&2 "It has taken longer to re-import mappings"
exit 1;
Expand Down
2 changes: 2 additions & 0 deletions django-nonrel/ocl/perf_data/prepare_db.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
db.concepts_concept.remove({});
db.concepts_conceptversion.remove({});
db.mappings_mapping.remove({});
db.mappings_mappingversion.remove({});

var user_object = {first_name: 'Perf',
last_name: 'Test',
is_staff: true,
Expand Down

0 comments on commit 2cc136d

Please sign in to comment.