Skip to content

Commit 7d9d236

Browse files
committed
tests: fix require-await in workspace lifecycle hooks test
1 parent 952ffb4 commit 7d9d236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/services/workspaceLifecycleHooks.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ describe("WorkspaceLifecycleHooks", () => {
105105
const hooks = new WorkspaceLifecycleHooks();
106106

107107
const calls: string[] = [];
108-
hooks.registerAfterUnarchive(async () => {
108+
hooks.registerAfterUnarchive(() => {
109109
calls.push("first");
110-
throw new Error("boom\nstack");
110+
return Promise.reject(new Error("boom\nstack"));
111111
});
112112
hooks.registerAfterUnarchive(() => {
113113
calls.push("second");

0 commit comments

Comments
 (0)