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:
8 files changed
+8
-24
No files matched your search
@@ -33,7 +33,7 @@ public sealed class SingleInstance : IDisposable
|
||||
}
|
||||
|
||||
/// <summary>Sends <paramref name="args"/> (absolute paths; empty = just show the window) to the running instance.</summary>
|
||||
public static bool TrySend(IReadOnlyList<string> args)
|
||||
public static void HandOver(IReadOnlyList<string> args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -41,12 +41,10 @@ public sealed class SingleInstance : IDisposable
|
||||
pipe.Connect(3000);
|
||||
pipe.Write(Encode(args));
|
||||
pipe.Flush();
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex) when (ex is IOException or TimeoutException or UnauthorizedAccessException)
|
||||
{
|
||||
Log.Warning("instance", "Could not reach the running uploader", ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user