GODT-2251: Store gluon cache in user cache rather than user data

This commit is contained in:
James Houlahan
2023-01-16 16:27:41 +01:00
parent fdbc380421
commit 03c8c323bc
10 changed files with 53 additions and 31 deletions

View File

@ -100,13 +100,13 @@ func (t *testCtx) initBridge() (<-chan events.Event, error) {
}
// Get the default gluon path.
gluonDir, err := t.locator.ProvideGluonPath()
gluonCacheDir, err := t.locator.ProvideGluonCachePath()
if err != nil {
return nil, fmt.Errorf("could not get gluon dir: %w", err)
}
// Create the vault.
vault, corrupt, err := vault.New(vaultDir, gluonDir, t.storeKey)
vault, corrupt, err := vault.New(vaultDir, gluonCacheDir, t.storeKey)
if err != nil {
return nil, fmt.Errorf("could not create vault: %w", err)
} else if corrupt {