File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 18
18
"scripts" : {
19
19
"lint" : " aegir lint" ,
20
20
"build" : " aegir build" ,
21
- "test" : " aegir test -t node -f test/**/*.js" ,
22
- "test:node" : " aegir test -t node -f test/**/*.js" ,
21
+ "test" : " aegir test -t node -f test/*.js test/* */*.js" ,
22
+ "test:node" : " aegir test -t node -f test/*.js test/* */*.js" ,
23
23
"release" : " aegir release --no-build -t node" ,
24
24
"release-minor" : " aegir release --no-build --type minor -t node" ,
25
25
"release-major" : " aegir release --no-build --type major -t node"
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ const ma = require('multiaddr')
11
11
const { createDaemon } = require ( '../../src/daemon' )
12
12
const { isWindows } = require ( '../../src/util' )
13
13
14
- const PATH = isWindows
15
- ? path . join ( '\\\\?\\pipe' , '/tmp/p2pd.sock ')
16
- : path . resolve ( os . tmpdir ( ) , '/tmp/p2pd.sock' )
14
+ const daemonAddr = isWindows
15
+ ? ma ( '/ip4/0.0.0.0/tcp/8080 ')
16
+ : ma ( `/unix ${ path . resolve ( os . tmpdir ( ) , '/tmp/p2pd.sock' ) } ` )
17
17
18
18
describe ( 'configuration' , ( ) => {
19
19
let daemon
@@ -32,7 +32,7 @@ describe('configuration', () => {
32
32
dht : true ,
33
33
dhtClient : false ,
34
34
connMgr : false ,
35
- listen : `/unix ${ PATH } ` ,
35
+ listen : daemonAddr . toString ( ) ,
36
36
id : '' ,
37
37
bootstrapPeers : ''
38
38
} )
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ describe('protocol', () => {
61
61
62
62
it ( 'should be able to encode/decode a StreamHandlerRequest' , ( ) => {
63
63
const streamHandlerRequest = {
64
- path : path . resolve ( '/tmp/p2p.sock' ) ,
64
+ addr : multiaddr ( '/unix/ tmp/p2p.sock' ) . buffer ,
65
65
proto : [ '/p2pdaemon/1.0.0' ]
66
66
}
67
67
const request = {
You can’t perform that action at this time.
0 commit comments