We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9024602 commit 10817c0Copy full SHA for 10817c0
src/__tests__/modules/extensionAll.test.ts
@@ -2,6 +2,7 @@ import os from 'os'
2
import { URL } from 'url'
3
import { DependencySession } from '../../extension/dependency'
4
import fetch from '../../model/fetch'
5
+import { waitImmediate } from '../../util'
6
7
process.env.NO_PROXY = '*'
8
@@ -25,9 +26,10 @@ describe('Test dependencies ', () => {
25
26
// optionalDependencies
27
console.log(`total: ${names.length}`)
28
let registry = new URL('https://registry.npmjs.org/')
- let session = new DependencySession(registry, os.tmpdir())
29
30
for (let name of names) {
31
+ await waitImmediate()
32
+ let session = new DependencySession(registry, os.tmpdir())
33
console.log(`Checking module ${name}`)
34
try {
35
let dep = session.createInstaller(os.tmpdir(), () => {})
0 commit comments