Skip to content

Commit 96bf3ea

Browse files
authored
Fix unawaited promises in local e2e tests (#4195)
1 parent 71cac6e commit 96bf3ea

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

extension/src/test/e2e/util.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ const notificationShown = async (
4040
message: string
4141
): Promise<boolean> => {
4242
const notifications = await workbench.getNotifications()
43-
return notifications.some(
44-
async notification => (await notification.elem.getText()) === message
45-
)
43+
for (const notif of notifications) {
44+
const notifMessage = await notif.elem.getText()
45+
if (message === notifMessage) {
46+
return true
47+
}
48+
}
49+
return false
4650
}
4751

4852
const runDeleteCommand = async (

0 commit comments

Comments
 (0)