Repository navigation
idle snapshot 测试改轮询等待,消除 CI 时序假失败 - #313
Merged
Merged
Conversation
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.
实际改动
Tests/WeiBeiSafetyTests/NoteEditingSessionTests.swifttestDirtyInputSchedulesOneIdleSnapshot:固定Task.sleep(100ms)改为最长 2s、每 10ms 的轮询等待,等待条件是快照命令已到达。背景
该测试 2026-08-22 当天三次首跑假失败(#287、#306、#311),均为满载 runner 上 20ms 空闲计时器超出主线程调度窗口,断言时命令尚未到达(0≠1、nil≠Optional(2))。重跑均绿。
未做内容
验证
swiftc -parse语法通过;本地无 XCTest 运行时(无 Xcode),类型与运行结果由本 PR 的 CI 全量验证。共享核心文件占用
冒烟说明