mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-14 03:30:51 +00:00
test(#4800): make _scheduleRender guard test signature-agnostic
#4800 changed _scheduleRender() -> _scheduleRender(parsed) (parse-result cache). test_streaming_race_fix's regex hardcoded the empty-arg signature so it couldn't find the function ('_scheduleRender not found') even though the _streamFinalized guard it checks is intact (line 3759). Regex now matches any args. Co-authored-by: wlknight
This commit is contained in:
@@ -42,7 +42,7 @@ class TestStreamFinalized:
|
||||
|
||||
def test_schedule_render_guards_on_stream_finalized(self):
|
||||
src = read('static/messages.js')
|
||||
m = re.search(r'function _scheduleRender\(\)\{.*?\n \}', src, re.DOTALL)
|
||||
m = re.search(r'function _scheduleRender\([^)]*\)\{.*?\n \}', src, re.DOTALL)
|
||||
assert m, "_scheduleRender not found"
|
||||
fn = m.group(0)
|
||||
assert '_streamFinalized' in fn, (
|
||||
|
||||
Reference in New Issue
Block a user