fix(locators): not waiting until handle is disposed (#8735)
This commit is contained in:
parent
9626b111bc
commit
a1f26976b0
|
|
@ -41,7 +41,7 @@ export class Locator implements api.Locator {
|
|||
try {
|
||||
return await task(handle, deadline ? deadline - monotonicTime() : 0);
|
||||
} finally {
|
||||
handle.dispose();
|
||||
await handle.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue