mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
TestBackup_AfterSync_ResolvesSymlinks failed ~7-10% of runs. The cause is in the test, not production: `sync` takes a pre-sync backup of the target before creating the agent-browser symlink, and the explicit `backup` takes a second one. When the two land in different clock-seconds there are two timestamp dirs, and `entries[0]` (lexicographically oldest) points at the pre-sync backup that predates the symlink, so the symlinked-skill assertion fails. Select the newest backup dir (last entry, ascending sort) so the assertion targets the post-sync backup that actually contains the resolved symlink. Verified 0/80 failures under -race. ref #226