From 69f86f06f2bfed44d957f0b5eabbdeb47a0e9572 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 20 Dec 2023 23:39:49 -0800 Subject: [PATCH 1/1] Fix flaky test: Increment request count before responding --- testing/fakeserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/fakeserver.py b/testing/fakeserver.py index bbeb522..fbef2e5 100644 --- a/testing/fakeserver.py +++ b/testing/fakeserver.py @@ -16,6 +16,7 @@ class FakeGlowficHTTPRequestHandler(BaseHTTPRequestHandler): return 200 def do_GET(self) -> None: + self._notify_server() with open("testdata/this-is-glowfic.html", "rb") as f: body = f.read(9999) self.send_response(self._response_code()) @@ -23,7 +24,6 @@ class FakeGlowficHTTPRequestHandler(BaseHTTPRequestHandler): self.send_header("Content-Length", str(len(body))) self.end_headers() self.wfile.write(body) - self._notify_server() class FakeGlowficServer(): -- 2.44.1