Skip to content

Commit

Permalink
clear the registry
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Promislow <[email protected]>
  • Loading branch information
ericpromislow committed Apr 29, 2023
1 parent 473f333 commit 67dd43a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/rancher-desktop/main/__tests__/deploymentProfiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ if (Math.random() < 0.00001) {
}

async function clearRegistry() {
try {
await spawnFile('reg', ['DELETE', regFilePath]);
} catch (ex: any) {
expect(ex).toMatchObject({});
throw ex;
for (const hiveName of [testingDefaultsHiveName, testingLockedHiveName]) {
try {
await spawnFile('reg', ['DELETE', `HKCU\\${ REGISTRY_PATH_PROFILE.join('\\') }\\${ hiveName }`]);
} catch (ex: any) {
expect(ex).toMatchObject({ frtiog: 3 });
// Ignore any errors
}
}
}

Expand Down

0 comments on commit 67dd43a

Please sign in to comment.