Verified Commit 81dbf0ee authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST fix caching problem and adjusted some delays

parent 60c6ceac
......@@ -57,7 +57,7 @@ test:qunit:
tags: [ py34 ]
artifacts:
paths:
- qunit.log
- public/qunit.log
- screenlog.*
script:
- make run-qunit
......@@ -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
......
......@@ -1032,7 +1032,7 @@ QUnit.test("createCarouselNav", function(assert) {
assert.equal($(ref_property_elem).find('.' + preview.classNamePreview).length, 0, 'no carousel after reset');
done();
}, 400);
}, 600);
}, 400);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment