Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: net/tools/testserver/testserver.py

Issue 1049343002: Make the test server's SlowServerHandler match the documentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/testserver.py
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index c22962d40bffa91aff74c44e958cb907b9072e7a..19409d2ff3135df22e6b2e45f58ae7324002476b 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -1325,14 +1325,14 @@ class TestPageHandler(testserver_base.BasePageHandler):
wait_sec = 1.0
if query_char >= 0:
try:
- wait_sec = int(self.path[query_char + 1:])
+ wait_sec = float(self.path[query_char + 1:])
except ValueError:
pass
time.sleep(wait_sec)
self.send_response(200)
self.send_header('Content-Type', 'text/plain')
self.end_headers()
- self.wfile.write("waited %d seconds" % wait_sec)
+ self.wfile.write("waited %.1f seconds" % wait_sec)
return True
def ChunkedServerHandler(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698