Skip to content

Commit

Permalink
fix lint reverts await
Browse files Browse the repository at this point in the history
  • Loading branch information
ckousik committed Feb 3, 2023
1 parent 08725e7 commit 95e5d46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pubsub/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function runGossipsubTests (factory: DaemonFactory, optionsA: SpawnOptions, opti
after(async function () {
if (daemons != null) {
await Promise.all(
daemons.map(async (daemon) => await daemon.stop())
daemons.map(async daemon => await daemon.stop())
)
}
})
Expand Down
6 changes: 3 additions & 3 deletions src/relay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ function relayTest (factory: DaemonFactory, aType: NodeType, bType: NodeType, re

before(async function () {
this.timeout(20 * 1000)
daemons = await Promise.all(opts.map( o => factory.spawn(o)))
daemons = await Promise.all(opts.map(async o => await factory.spawn(o)))
})

after(async function () {
await Promise.all(daemons.map(d => d.stop()))
await Promise.all(daemons.map(async d => await d.stop()))
})

it('connects', async () => {
const aNode = daemons[0]
const bNode = daemons[1]
const identify = await Promise.all(daemons.map(d => d.client.identify()))
const identify = await Promise.all(daemons.map(async d => await d.client.identify()))
const bId = identify[1]
const relayId = identify[2]

Expand Down

0 comments on commit 95e5d46

Please sign in to comment.