build: one version for the app and the plugin
D11 replaces an installed plugin only when the shipped manifest is newer, but the manifest version was kept by hand and still said 1.0.0.1, the version of a test build installed before the snapshot sharing and appPath fixes, so that stale plugin was never replaced. Directory.Build.props now holds the only version, 1.0.1; publish.py stamps it into the shipped manifest and the app shows it in its title. Tests that waited on real time (file retry, popup expiry) use controlled timers, and real process waits have wider margins. Refs #1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using FinalToken.Core.Processes;
|
||||
using System.Threading.Channels;
|
||||
|
||||
namespace FinalToken.Core.Tests;
|
||||
|
||||
@@ -18,6 +19,8 @@ public sealed class TestDirectory : IDisposable
|
||||
|
||||
public sealed class TestClock : TimeProvider
|
||||
{
|
||||
private readonly Channel<TimeSpan> scheduled = Channel.CreateUnbounded<TimeSpan>();
|
||||
public ValueTask<TimeSpan> NextTimerAsync(CancellationToken cancellationToken) => scheduled.Reader.ReadAsync(cancellationToken);
|
||||
private readonly Lock gate = new();
|
||||
private DateTimeOffset now = new(2026, 10, 14, 16, 0, 0, TimeSpan.Zero);
|
||||
private readonly List<TestTimer> timers = [];
|
||||
@@ -40,6 +43,7 @@ public sealed class TestClock : TimeProvider
|
||||
var timer = new TestTimer(this, callback, state, period);
|
||||
timer.Change(dueTime, period);
|
||||
timers.Add(timer);
|
||||
scheduled.Writer.TryWrite(dueTime);
|
||||
return timer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user