Skip to content

Commit 48d8761

Browse files
test: debug
1 parent 49f50e9 commit 48d8761

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

lib/Server.js

-10
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,6 @@ class Server {
936936
const socket = new net.Socket();
937937

938938
socket.on('error', (error) => {
939-
// eslint-disable-next-line no-console
940-
console.log('TEST ERROR', error);
941-
942939
if (error.code === 'ECONNREFUSED') {
943940
fs.unlinkSync(this.options.ipc);
944941

@@ -976,18 +973,11 @@ class Server {
976973
port: this.options.port,
977974
};
978975

979-
// eslint-disable-next-line no-console
980-
console.log(listenOptions);
981-
982976
return this.server.listen(listenOptions, (error) => {
983-
// eslint-disable-next-line no-console
984-
console.log('LISTEN');
985977
if (this.options.ipc) {
986978
// chmod 666 (rw rw rw)
987979
const READ_WRITE = 438;
988980

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

test/e2e/ipc.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('web socket server URL', () => {
133133

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

0 commit comments

Comments
 (0)