test(dashboard): 避免两级会话发现被默认等待预算误判 - #142
Merged
Merged
Conversation
整包运行的 CPU 争用会使两次 Help 查询与 React 渲染超过 Testing Library 默认一秒;单独用例和 Node22 CI 均通过。明确五秒等待上限,仍断言相同面板和精确请求路径,避免把调度延迟误判成发现失败。仅测试变更,不影响已发布产物。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与变化
进程会话发现需要两次异步 Help 查询和 React 渲染。本地高负载时,Testing Library 默认一秒等待会把调度延迟误判为发现失败。将这一个可见性断言的等待上限明确设为五秒,保留真实 SDK 解析、精确请求路径及全部行为断言。
仅修改测试和对应 llmdoc 指纹,不改变发布产物,无需追加版本。
验证