This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
element_handle.newAction function can wait indefinitely when context is cancelled #1437
Closed
2 tasks done
Labels
bug
Something isn't working
Brief summary
We've found another issue where the browser module seems to hang indefinitely. This time it is due to a goroutine not reading from the channel once the context is closed.
resultCh
has shutdown.This could be a reason for the browser module not shutting down, although i would have expected the goroutine to be cleaned up by the go runtime 🤔
stack trace of issue:
xk6-browser version
v1.8.2
OS
NA
Chrome version
NA
Docker version and image (if applicable)
No response
Steps to reproduce the problem
NA
Expected behaviour
The browser module shuts down and instead of it trying to write to the
resultCh
it exits when the context closes.Actual behaviour
Waits for a goroutine to read off of
resultCh
.My tasks
The text was updated successfully, but these errors were encountered: