Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions PolyPilot.Tests/DiagnosticsLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ public void Debug_LogRotation_RotationConstantExists()
Assert.Contains("[SEND] first message", content);
Assert.Contains("[SEND] second message", content);

// Verify the file is small (nowhere near 10 MB rotation threshold)
// Verify the file is small (nowhere near 10 MB rotation threshold).
// Other tests may write to the same log file concurrently, so allow up to 10 KB.
var fi = new FileInfo(DiagnosticsLogPath);
Assert.True(fi.Length < 1024, "Log file should be tiny for two messages");
Assert.True(fi.Length < 10_240, $"Log file should be tiny, was {fi.Length} bytes");
}

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions PolyPilot.Tests/PolyPilot.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
<Compile Include="../PolyPilot/Models/ExternalSessionInfo.cs" Link="Shared/ExternalSessionInfo.cs" />
<Compile Include="../PolyPilot/Services/ExternalSessionScanner.cs" Link="Shared/ExternalSessionScanner.cs" />
<Compile Include="../PolyPilot/Services/WindowFocusHelper.cs" Link="Shared/WindowFocusHelper.cs" />
<Compile Include="../PolyPilot/Models/ScheduledTask.cs" Link="Shared/ScheduledTask.cs" />
<Compile Include="../PolyPilot/Services/ScheduledTaskService.cs" Link="Shared/ScheduledTaskService.cs" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading