File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -936,9 +936,6 @@ class Server {
936
936
const socket = new net . Socket ( ) ;
937
937
938
938
socket . on ( 'error' , ( error ) => {
939
- // eslint-disable-next-line no-console
940
- console . log ( 'TEST ERROR' , error ) ;
941
-
942
939
if ( error . code === 'ECONNREFUSED' ) {
943
940
fs . unlinkSync ( this . options . ipc ) ;
944
941
@@ -976,18 +973,11 @@ class Server {
976
973
port : this . options . port ,
977
974
} ;
978
975
979
- // eslint-disable-next-line no-console
980
- console . log ( listenOptions ) ;
981
-
982
976
return this . server . listen ( listenOptions , ( error ) => {
983
- // eslint-disable-next-line no-console
984
- console . log ( 'LISTEN' ) ;
985
977
if ( this . options . ipc ) {
986
978
// chmod 666 (rw rw rw)
987
979
const READ_WRITE = 438 ;
988
980
989
- // eslint-disable-next-line no-console
990
- console . log ( 'CHANGE CHMOD' ) ;
991
981
fs . chmodSync ( this . options . ipc , READ_WRITE ) ;
992
982
}
993
983
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ describe('web socket server URL', () => {
133
133
134
134
it . only ( `should work with the "ipc" option using "string" value ("${ webSocketServer } ")` , async ( ) => {
135
135
const isWindows = process . platform === 'win32' ;
136
- const localRelative = path . relative ( process . cwd ( ) , `${ process . cwd ( ) } /` ) ;
136
+ const localRelative = path . relative ( process . cwd ( ) , `${ os . tmpdir ( ) } /` ) ;
137
137
const pipePrefix = isWindows ? '\\\\.\\pipe\\' : localRelative ;
138
138
const pipeName = `webpack-dev-server.${ process . pid } -1.sock` ;
139
139
const ipc = path . join ( pipePrefix , pipeName ) ;
You can’t perform that action at this time.
0 commit comments