Skip to content

Commit

Permalink
fix: ignore errors from trace.stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
hassy committed Jan 8, 2025
1 parent 74b945d commit e184829
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/artillery-engine-playwright/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,13 @@ class PlaywrightEngine {
Date.now() - self.lastTraceRecordedTime >
self.TRACE_RECORDING_INTERVAL_MSEC
) {
await context.tracing.stop({
path: initialContext.vars.__tracePath
});
try {
await context.tracing.stop({
path: initialContext.vars.__tracePath
});
} catch (err) {
debug(err);
}
events.emit('counter', 'browser.traces_collected', 1);
self.lastTraceRecordedTime = Date.now();
self.tracesRecordedCount++;
Expand Down

0 comments on commit e184829

Please sign in to comment.