mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-11 03:13:45 +00:00
test(e2e): bind the test server to loopback only
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.
This commit is contained in:
1 parent
49f14a1f5a
commit
2f896584f8
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user