From 2f896584f85ea999510b2904d506751ebec9dacf Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Tue, 8 Sep 2026 14:23:28 +0700 Subject: [PATCH] test(e2e): bind the test server to loopback only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The suite only ever talks to localhost, and a listener on every interface is what makes Windows Firewall ask to allow the binary — which `go run` rebuilds to a new temporary path each time, so answering never sticks. --- web/playwright.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/playwright.config.js b/web/playwright.config.js index fd04618..4032c09 100644 --- a/web/playwright.config.js +++ b/web/playwright.config.js @@ -40,7 +40,11 @@ export default defineConfig({ stdout: 'pipe', stderr: 'pipe', env: { - NOITU_ADDR: `:${PORT}`, + // Loopback rather than every interface. The suite only ever talks to + // localhost, and a listener on 0.0.0.0 is what makes Windows + // Firewall ask to allow the binary — which `go run` rebuilds to a + // new temporary path every time, so answering never sticks. + NOITU_ADDR: `127.0.0.1:${PORT}`, NOITU_DB_PATH: '../data/fixture.db', NOITU_WEB_DIR: '../web/build', // Long enough that no test races the turn clock. Timeout behaviour