Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
bmp-caosdb
caosdb-webui
Commits
81dbf0ee
Verified
Commit
81dbf0ee
authored
Nov 28, 2018
by
Timm Fitschen
Browse files
TST fix caching problem and adjusted some delays
parent
60c6ceac
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
81dbf0ee
...
...
@@ -57,7 +57,7 @@ test:qunit:
tags
:
[
py34
]
artifacts
:
paths
:
-
qunit.log
-
public/
qunit.log
-
screenlog.*
script
:
-
make run-qunit
misc/unit_test_http_server.py
View file @
81dbf0ee
...
...
@@ -53,6 +53,18 @@ class UnitTestsHandler(SimpleHTTPRequestHandler):
#return HTTP status: 404 Not Found
self
.
send_response
(
404
)
def
send_response
(
self
,
code
,
message
=
None
):
"""send_response
Set Cache-Control, Pragma and Expires headers. Then call send_response
of BaseHTTPRequestHandler.
"""
super
().
send_response
(
code
=
code
,
message
=
message
)
if
self
.
command
==
"GET"
:
self
.
send_header
(
"Cache-Control"
,
"no-cache, no-store, must-revalidate"
)
self
.
send_header
(
"Pragma"
,
"no-cache"
)
self
.
send_header
(
"Expires"
,
"0"
)
def
done
(
self
):
"""done
...
...
test/js/modules/webcaosdb.js.js
View file @
81dbf0ee
...
...
@@ -1032,7 +1032,7 @@ QUnit.test("createCarouselNav", function(assert) {
assert
.
equal
(
$
(
ref_property_elem
).
find
(
'
.
'
+
preview
.
classNamePreview
).
length
,
0
,
'
no carousel after reset
'
);
done
();
},
4
00
);
},
6
00
);
},
400
);
...
...
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