rename strange path

This commit is contained in:
Simon Knott 2024-10-31 13:17:58 +01:00
parent 66e403ad4a
commit d9a7b81c6d
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -108,9 +108,9 @@ const outputDirForTestCase = (testCase: reporterTypes.TestCase): string | undefi
return undefined;
};
async function loadSingleTraceFile(tracePathOrURL: URL): Promise<MultiTraceModel> {
async function loadSingleTraceFile(traceURL: URL): Promise<MultiTraceModel> {
const params = new URLSearchParams();
params.set('trace', formatUrl(tracePathOrURL).toString());
params.set('trace', formatUrl(traceURL).toString());
params.set('limit', '1');
const response = await fetch(`contexts?${params.toString()}`);
const contextEntries = await response.json() as ContextEntry[];