chore: make contentTracing.stopRecording() failure clearer (#38488)

chore: make contentTracing.stopRecording() failure clearer
This commit is contained in:
Shelley Vohr 2023-05-31 15:54:41 +02:00 committed by GitHub
parent 115d37477e
commit 663497dc6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -114,7 +114,7 @@ ifdescribe(!(['arm', 'arm64', 'ia32'].includes(process.arch)))('contentTracing',
});
it('rejects if no trace is happening', async () => {
await expect(contentTracing.stopRecording()).to.be.rejected();
await expect(contentTracing.stopRecording()).to.be.rejectedWith('Failed to stop tracing - no trace in progress');
});
});