Skip to content

Commit

Permalink
test: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jun 25, 2021
1 parent 49f50e9 commit 48d8761
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,6 @@ class Server {
const socket = new net.Socket();

socket.on('error', (error) => {
// eslint-disable-next-line no-console
console.log('TEST ERROR', error);

if (error.code === 'ECONNREFUSED') {
fs.unlinkSync(this.options.ipc);

Expand Down Expand Up @@ -976,18 +973,11 @@ class Server {
port: this.options.port,
};

// eslint-disable-next-line no-console
console.log(listenOptions);

return this.server.listen(listenOptions, (error) => {
// eslint-disable-next-line no-console
console.log('LISTEN');
if (this.options.ipc) {
// chmod 666 (rw rw rw)
const READ_WRITE = 438;

// eslint-disable-next-line no-console
console.log('CHANGE CHMOD');
fs.chmodSync(this.options.ipc, READ_WRITE);
}

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/ipc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('web socket server URL', () => {

it.only(`should work with the "ipc" option using "string" value ("${webSocketServer}")`, async () => {
const isWindows = process.platform === 'win32';
const localRelative = path.relative(process.cwd(), `${process.cwd()}/`);
const localRelative = path.relative(process.cwd(), `${os.tmpdir()}/`);
const pipePrefix = isWindows ? '\\\\.\\pipe\\' : localRelative;
const pipeName = `webpack-dev-server.${process.pid}-1.sock`;
const ipc = path.join(pipePrefix, pipeName);
Expand Down

0 comments on commit 48d8761

Please sign in to comment.