Skip to content

Commit

Permalink
fix(puppet): user profile test/load test
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Nov 12, 2021
1 parent 59dbd0d commit 519304d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions core/lib/UserProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ export default class UserProfile {
);
originStorage.localStorage = liveData.localStorage;
originStorage.sessionStorage = liveData.sessionStorage;
for (const dbWithData of liveData.indexedDB) {
if (!dbWithData) continue;
const idx = originStorage.indexedDB.findIndex(x => x.name === dbWithData.name);
originStorage.indexedDB[idx] = dbWithData;
}
originStorage.indexedDB = liveData.indexedDB;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion puppet/test/load.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Load test', () => {
await navigate;
expect(page.mainFrame.url).toBe(`${server.crossProcessBaseUrl}/empty.html`);
} finally {
await page.close();
await page?.close();
}
});
await Promise.all(concurrent);
Expand Down

0 comments on commit 519304d

Please sign in to comment.