Browse Source

test: retry the "v8 samples" test for a few times (#25477)

Cheng Zhao 4 years ago
parent
commit
0b055b2fb8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      spec-main/api-content-tracing-spec.ts

+ 4 - 1
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'