This repository was archived by the owner on Sep 20, 2022. It is now read-only.
Description Steps
npm install --save-dev gemini-gui
configure gemini to use chromedriver
add npm run test:gui command to package.json:
{
// ...
"scripts": {
"test:gui": "gemini-gui -p 8076 ./gemini",
}
}
launch gemini-gui through npm run test:gui
click Run button to run tests
hit Ctrl-C in the server console
Expected
gemini-gui server is terminated
Actual
npm run script is terminated, but gemini-gui is still running and occupies the port forever
Logs
$ grep test:gui package.json
"test:gui": "gemini-gui -p 8076 ./gemini",
$ npm run test:gui
> [email protected] test:gui /Users/user/src/somepkg
> gemini-gui -p 8076 ./gemini
GUI is running at http://localhost:8076
✓ somepkg home [chrome]
Total: 1 Passed: 1 Failed: 0 Skipped: 0 Retries: 0
^CCancelling...
$ npm run test:gui
> [email protected] test:gui /Users/user/src/somepkg
> gemini-gui -p 8076 ./gemini
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 127.0.0.1:8076
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1259:14)
at listen (net.js:1295:10)
at net.js:1405:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)
Address is indeed still in use:
$ lsof -PiTCP -sTCP:LISTEN | grep 8076
node 85382 user 15u IPv4 0xdeadbeef12345 0t0 TCP localhost:8076 (LISTEN)
Curiously, it prints Force quit when killing the process:
(The problem is even more confusing because of #2 )
👍 React with 👍 2niedzielski and imprevo