From 0b055b2fb87281832216c59fe7877e185d6f8d16 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 17 Sep 2020 10:04:53 +0900 Subject: [PATCH] test: retry the "v8 samples" test for a few times (#25477) --- spec-main/api-content-tracing-spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec-main/api-content-tracing-spec.ts b/spec-main/api-content-tracing-spec.ts index 3f2f258b09ca..cf7772622c93 100644 --- a/spec-main/api-content-tracing-spec.ts +++ b/spec-main/api-content-tracing-spec.ts @@ -122,7 +122,10 @@ ifdescribe(!(process.platform !== 'win32' && ['arm', 'arm64'].includes(process.a }); describe('captured events', () => { - it('include V8 samples from the main process', async () => { + it('include V8 samples from the main process', async function () { + // This test is flaky on macOS CI. + this.retries(3); + await contentTracing.startRecording({ categoryFilter: 'disabled-by-default-v8.cpu_profiler', traceOptions: 'record-until-full'