Skip to content

Commit 579b270

Browse files
committed
can't get test to fail... hmm...
1 parent 47ae614 commit 579b270

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/tools/recipe2plan.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ export class StorageKeyRecipeResolver {
146146

147147
if (matches.length !== 1) {
148148
const extra = matches.length > 1 ? 'Ambiguous handles' : 'No matching handles found';
149-
throw Error(`Handle ${h.localName} mapped improperly: ${extra}.`);
149+
throw Error(`Handle ${h.id} mapped improperly: ${extra}.`);
150150
}
151151

152152
const match = matches[0];
153153
if (!match.recipe.isLongRunning) {
154-
throw Error(`Handle ${h.localName} mapped to ephemeral handle ${match.localName}.`);
154+
throw Error(`Handle ${h.id} mapped to ephemeral handle ${match.id}.`);
155155
}
156156

157-
h.storageKey = match.storageKey;
157+
// h.storageKey = match.storageKey;
158158
});
159159
}
160160
}

src/tools/tests/recipe2plan-test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ describe('recipe2plan', () => {
6767
data: reads data`);
6868

6969
const resolver = new StorageKeyRecipeResolver(manifest);
70+
7071
await assertThrowsAsync(async () => {
7172
// @ts-ignore
7273
for await (const it of resolver.resolve()) {
73-
continue;
74+
console.log('Should not be able to reach here');
7475
}
7576
});
7677
});

0 commit comments

Comments
 (0)