There was an error while loading. Please reload this page.
1 parent b25ee52 commit b344e74Copy full SHA for b344e74
1 file changed
test/parallel/test-fs-cp.mjs
@@ -275,8 +275,10 @@ function nextdir() {
275
276
// It throws an error if attempt is made to copy socket.
277
if(!isWindows){
278
+constsrc=nextdir();
279
+mkdirSync(src);
280
constdest=nextdir();
-constsock=`${process.pid}.sock`;
281
+constsock=join(src,`${process.pid}.sock`);
282
constserver=net.createServer();
283
server.listen(sock);
284
assert.throws(
@@ -596,8 +598,10 @@ if (!isWindows) {
596
598
597
599
// It returns an error if attempt is made to copy socket.
600
601
602
603
604
605
606
607
cp(sock,dest,mustCall((err)=>{
0 commit comments