test(uploader): match transport calls by path in the engine test

Two workers hash in parallel, so the first call is not always the first
item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:34:03 +00:00
1 parent 93f8dca1db
commit 65fdaaf6e4
1 file changed
+2 -1
@@ -27,7 +27,8 @@ public sealed class UploadEngineTests(TestContext context)
Assert.True(queue.Items.All(i => i.State == UploadItemState.Verified && i.FrameId is not null));
Assert.True(queue.Items.All(i => File.Exists(i.Path)));
Assert.Equal(Sha256(queue.Items[0].Path), transport.Calls[0].Sha256);
// Two workers hash in parallel, so calls arrive in either order.
foreach (var item in queue.Items) Assert.Equal(Sha256(item.Path), transport.Calls.Single(c => c.Path == item.Path).Sha256);
Assert.Equal(2, confirmed.Count);
});