[Webkit-unassigned] [Bug 205286] REGRESSION: [ Mac wk2 ] imported/w3c/web-platform-tests/service-workers/service-worker/update-no-cache-request-headers.https.html is a flakey failure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 16 13:29:58 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=205286

--- Comment #8 from Chris Dumez <cdumez at apple.com> ---
Indeed, it seems that if I replace the timestamp in the script with a uuid, the test is no longer flaky:
diff --git a/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py b/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py
index d3057057763..e7bdea368dd 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py
+++ b/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py
@@ -1,6 +1,7 @@
 import json
 import os
 import time
+import uuid

 def main(request, response):
   path = os.path.join(os.path.dirname(__file__),
@@ -9,7 +10,7 @@ def main(request, response):

   data = {key:request.headers[key] for key,value in request.headers.iteritems()}
   body = body.replace("%HEADERS%", json.dumps(data))
-  body = body.replace("%TIMESTAMP%", str(time.time()))
+  body = body.replace("%TIMESTAMP%", str(uuid.uuid4()))

   headers = []
   headers.append(("ETag", "etag"))

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191216/1a875408/attachment-0001.htm>


More information about the webkit-unassigned mailing list