Skip to content

Commit 619c7a9

Browse files
committed
Fix one of flakey test in protocol tests
1 parent ab937ac commit 619c7a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/debug/server_cdp.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,12 @@ def process
489489
id: SecureRandom.hex
490490
when 'Runtime.terminateExecution'
491491
send_response req
492-
exit
492+
if SESSION.in_subsession?
493+
@q_msg << 'kill!'
494+
else
495+
@q_msg << 'kill!'
496+
pause
497+
end
493498
when 'Page.startScreencast', 'Emulation.setTouchEmulationEnabled', 'Emulation.setEmitTouchEventsForMouse',
494499
'Runtime.compileScript', 'Page.getResourceContent', 'Overlay.setPausedInDebuggerMessage',
495500
'Runtime.releaseObjectGroup', 'Runtime.discardConsoleEntries', 'Log.clear', 'Runtime.runIfWaitingForDebugger'

0 commit comments

Comments
 (0)