refactor(uploader): drop members only tests used

Tests write serialized queue and watch-memory bytes directly; the app
persists through its coalescing writer. Single-instance hand-over no
longer returns an unused flag.

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:31:47 +00:00
1 parent 192fc7dcb3
commit ebe62b77ad
8 files changed
+8 -24

No files matched your search

@@ -51,7 +51,7 @@ public sealed class ProcessedFileMemoryTests(TestContext context)
memory.SetSession(root, new SessionContinuation("1a2b3c4d-20260928-180000", new DateTime(2026, 9, 28, 18, 40, 0)));
var path = Path.Combine(dir, "uploader-watch.json");
memory.Save(path);
File.WriteAllBytes(path, memory.Serialize());
Assert.False(memory.IsDirty);
var restored = ProcessedFileMemory.Load(path);
@@ -26,7 +26,7 @@ public sealed class UploadQueueTests(TestContext context)
queue.IsPaused = true;
var path = Path.Combine(context.CreateTempDirectory(), "uploader-queue.json");
QueueStore.Write(path, QueueStore.Serialize(queue));
File.WriteAllBytes(path, QueueStore.Serialize(queue));
var restored = new UploadQueue();
QueueStore.Load(path, restored);
@@ -67,7 +67,7 @@ public sealed class UploadQueueTests(TestContext context)
queue.Items[1].State = UploadItemState.Hashing;
var path = Path.Combine(context.CreateTempDirectory(), "q.json");
QueueStore.Write(path, QueueStore.Serialize(queue));
File.WriteAllBytes(path, QueueStore.Serialize(queue));
var restored = new UploadQueue();
QueueStore.Load(path, restored);