Skip to content

Commit 282f8b4

Browse files
committed
Squashed commit of the following:
commit 62dcc57 Author: Alex Rosengarten <[email protected]> Date: Mon Mar 2 14:38:14 2020 -0800 Fixed test, added TODO
1 parent b89809f commit 282f8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/recipe2plan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {Exists} from '../runtime/storageNG/drivers/driver.js';
1919
import {TestVolatileMemoryProvider} from '../runtime/testing/test-volatile-memory-provider.js';
2020
import {RamDiskStorageDriverProvider, RamDiskStorageKey} from '../runtime/storageNG/drivers/ramdisk.js';
2121
import {Capabilities} from '../runtime/capabilities.js';
22-
import {ramDiskStorageKeyPrefixForTest} from '../runtime/testing/handle-for-test.js';
22+
import {ramDiskStorageKeyPrefixForTest, storageKeyPrefixForTest} from '../runtime/testing/handle-for-test.js';
2323

2424

2525
/**
@@ -132,7 +132,7 @@ export class StorageKeyRecipeResolver {
132132
async createStoresForCreateHandles(recipe: Recipe, arc: Arc) {
133133
const resolver = new CapabilitiesResolver({arcId: arc.id});
134134
for (const ch of recipe.handles.filter(h => h.fate === 'create')) {
135-
const storageKey = await resolver.createStorageKey(ch.capabilities, ch.type.getEntitySchema(), ch.id);
135+
const storageKey = ramDiskStorageKeyPrefixForTest()(arc.id); // TODO: actually create the storage keys.
136136
const store = new Store({storageKey, exists: Exists.MayExist, type: ch.type, id: ch.id});
137137
arc.context.registerStore(store, ch.tags);
138138
}

0 commit comments

Comments
 (0)