diff --git a/src/vs/workbench/test/electron-browser/quickopen.perf.integrationTest.ts b/src/vs/workbench/test/electron-browser/quickopen.perf.integrationTest.ts index a4ca64aac1793..d967748494d69 100644 --- a/src/vs/workbench/test/electron-browser/quickopen.perf.integrationTest.ts +++ b/src/vs/workbench/test/electron-browser/quickopen.perf.integrationTest.ts @@ -111,11 +111,11 @@ suite('QuickOpen performance (integration)', () => { } function popEvent() { - const events = telemetryService.events; + const events = telemetryService.events + .filter(event => event.name === 'openAnything'); assert.strictEqual(events.length, 1); const event = events[0]; - events.length = 0; - assert.strictEqual(event.name, 'openAnything'); + telemetryService.events.length = 0; return event; }