This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ function hapiInfoToMultiaddr (info) {
23
23
return toMultiaddr ( uri )
24
24
}
25
25
26
- function serverCreator ( serverAddrs , createServer , ipfs ) {
26
+ async function serverCreator ( serverAddrs , createServer , ipfs ) {
27
27
serverAddrs = serverAddrs || [ ]
28
28
// just in case the address is just string
29
29
serverAddrs = Array . isArray ( serverAddrs ) ? serverAddrs : [ serverAddrs ]
30
30
31
- const processServer = async address => {
31
+ const servers = [ ]
32
+ for ( const address of serverAddrs ) {
32
33
const addrParts = address . split ( '/' )
33
34
const server = await createServer ( addrParts [ 2 ] , addrParts [ 4 ] , ipfs )
34
35
await server . start ( )
35
36
server . info . ma = hapiInfoToMultiaddr ( server . info )
36
- return server
37
+ servers . push ( server )
37
38
}
38
-
39
- return Promise . all ( serverAddrs . map ( processServer ) )
39
+ return servers
40
40
}
41
41
42
42
class HttpApi {
Original file line number Diff line number Diff line change @@ -20,12 +20,18 @@ module.exports = (http) => {
20
20
expect ( res . result ) . to . have . property ( 'Path' )
21
21
} )
22
22
23
- it ( 'resolve ipfs.enstest.eth ENS' , async ( ) => {
23
+ it ( 'resolve ipfs.enstest.eth ENS' , async function ( ) {
24
24
const res = await api . inject ( {
25
25
method : 'GET' ,
26
26
url : '/api/v0/dns?arg=ipfs.enstest.eth'
27
27
} )
28
28
29
+ // TODO: eth.link domains have no SLA yet and are liable to be down...
30
+ // Remove skip when reliable!
31
+ if ( res . statusCode === 500 ) {
32
+ return this . skip ( )
33
+ }
34
+
29
35
expect ( res . result ) . to . have . property ( 'Path' )
30
36
} )
31
37
} )
You can’t perform that action at this time.
0 commit comments