Skip to content

Commit 88ae1ec

Browse files
committed
fix metrics collection on linux
1 parent 312aab0 commit 88ae1ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const previousResultsDir = 'out/previous-results';
22
export const baselineResultsDir = 'out/baseline-results';
33
export const latestResultFile = 'out/latest-result.json';
4-
export const artifactName = "sdk-metrics-replay"
4+
export const artifactName = "replay-sdk-metrics"

packages/replay/metrics/src/scenarios.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export class JankTestScenario implements Scenario {
3636
public constructor(private withSentry: boolean) { }
3737

3838
public async run(_: puppeteer.Browser, page: puppeteer.Page): Promise<void> {
39-
const url = path.resolve('./test-apps/jank/' + (this.withSentry ? 'with-sentry' : 'index') + '.html');
39+
let url = path.resolve('./test-apps/jank/' + (this.withSentry ? 'with-sentry' : 'index') + '.html');
4040
assert(fs.existsSync(url));
41+
url = 'file:///' + url.replace('\\', '/');
42+
console.log('Navigating to ', url);
4143
await page.goto(url, { waitUntil: 'load', timeout: 60000 });
4244
await new Promise(resolve => setTimeout(resolve, 5000));
4345
}

0 commit comments

Comments
 (0)