Titano: time-lapse ecosystem (client, server, uploader) — in progress #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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user