@@ -1548,7 +1548,7 @@ describe('WebSocket', () => {
1548
1548
1549
1549
server . once ( 'upgrade' , ( req , socket ) => {
1550
1550
socket . end (
1551
- `HTTP/1.1 302 Found\r\nLocation: ws+unix:// ${ socketPath } \r\n\r\n`
1551
+ `HTTP/1.1 302 Found\r\nLocation: ws+unix:${ socketPath } \r\n\r\n`
1552
1552
) ;
1553
1553
} ) ;
1554
1554
@@ -1589,7 +1589,7 @@ describe('WebSocket', () => {
1589
1589
1590
1590
ws . on ( 'close' , ( code ) => {
1591
1591
assert . strictEqual ( code , 1005 ) ;
1592
- assert . strictEqual ( ws . url , `ws+unix:// ${ socketPath } ` ) ;
1592
+ assert . strictEqual ( ws . url , `ws+unix:${ socketPath } ` ) ;
1593
1593
assert . strictEqual ( ws . _redirects , 1 ) ;
1594
1594
1595
1595
redirectedServer . close ( done ) ;
@@ -1616,7 +1616,7 @@ describe('WebSocket', () => {
1616
1616
redirectingServer . on ( 'upgrade' , ( req , socket ) => {
1617
1617
socket . end (
1618
1618
'HTTP/1.1 302 Found\r\n' +
1619
- `Location: ws+unix:// ${ redirectedServerSocketPath } \r\n\r\n`
1619
+ `Location: ws+unix:${ redirectedServerSocketPath } \r\n\r\n`
1620
1620
) ;
1621
1621
} ) ;
1622
1622
@@ -1645,10 +1645,10 @@ describe('WebSocket', () => {
1645
1645
host : 'foo'
1646
1646
} ;
1647
1647
1648
- const ws = new WebSocket (
1649
- `ws+unix:// ${ redirectingServerSocketPath } ` ,
1650
- { followRedirects : true , headers }
1651
- ) ;
1648
+ const ws = new WebSocket ( `ws+unix: ${ redirectingServerSocketPath } ` , {
1649
+ followRedirects : true ,
1650
+ headers
1651
+ } ) ;
1652
1652
1653
1653
const firstRequest = ws . _req ;
1654
1654
@@ -1666,7 +1666,7 @@ describe('WebSocket', () => {
1666
1666
assert . strictEqual ( code , 1005 ) ;
1667
1667
assert . strictEqual (
1668
1668
ws . url ,
1669
- `ws+unix:// ${ redirectedServerSocketPath } `
1669
+ `ws+unix:${ redirectedServerSocketPath } `
1670
1670
) ;
1671
1671
assert . strictEqual ( ws . _redirects , 1 ) ;
1672
1672
@@ -1723,7 +1723,7 @@ describe('WebSocket', () => {
1723
1723
host : 'foo'
1724
1724
} ;
1725
1725
1726
- const ws = new WebSocket ( `ws+unix:// ${ socketPath } ` , {
1726
+ const ws = new WebSocket ( `ws+unix:${ socketPath } ` , {
1727
1727
followRedirects : true ,
1728
1728
headers
1729
1729
} ) ;
0 commit comments