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

This commit is contained in:
Cheng Zhao 2020-09-17 10:04:53 +09:00 committed by GitHub
parent 53aaeb7a16
commit 0b055b2fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,7 +122,10 @@ ifdescribe(!(process.platform !== 'win32' && ['arm', 'arm64'].includes(process.a
}); });
describe('captured events', () => { 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({ await contentTracing.startRecording({
categoryFilter: 'disabled-by-default-v8.cpu_profiler', categoryFilter: 'disabled-by-default-v8.cpu_profiler',
traceOptions: 'record-until-full' traceOptions: 'record-until-full'