| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7d67273 commit 978bbf9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,12 +32,15 @@ server.on('stream', (stream, headers) => { | |||
| 32 | 32 | function testRequest(path, targetFrameCount, callback) { | |
| 33 | 33 | const obs = new PerformanceObserver( | |
| 34 | 34 | common.mustCallAtLeast((list, observer) => { | |
| 35 | - const entry = list.getEntries()[0]; | ||
| 36 | - if (entry.name !== 'Http2Session') return; | ||
| 37 | - if (entry.detail.type !== 'client') return; | ||
| 38 | - assert.strictEqual(entry.detail.framesReceived, targetFrameCount); | ||
| 39 | - observer.disconnect(); | ||
| 40 | - callback(); | ||
| 35 | + const entries = list.getEntries(); | ||
| 36 | + for (let n = 0; n < entries.length; n++) { | ||
| 37 | + const entry = entries[n]; | ||
| 38 | + if (entry.name !== 'Http2Session') continue; | ||
| 39 | + if (entry.detail.type !== 'client') continue; | ||
| 40 | + assert.strictEqual(entry.detail.framesReceived, targetFrameCount); | ||
| 41 | + observer.disconnect(); | ||
| 42 | + callback(); | ||
| 43 | + } | ||
| 41 | 44 | })); | |
| 42 | 45 | obs.observe({ type: 'http2' }); | |
| 43 | 46 | const client = | |
| Back | FazBrowse Home | New Git URL |
0 commit comments