Skip to content

Commit

Permalink
improve real time reading for tyche
Browse files Browse the repository at this point in the history
  • Loading branch information
pppls committed Oct 20, 2024
1 parent 22d30ec commit da06882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CsCheck/Logging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public static ILogger<T> CreateLogger<T>(LogProcessor p, string propertyUnderTes
{
var testcasesFilePath = Path.Combine(projectRoot, $".CsCheck\\observed", $"{todayString}_testcases.jsonl");
Directory.CreateDirectory(Path.GetDirectoryName(testcasesFilePath)!);
using var w = new StreamWriter(testcasesFilePath, true);
var fileStream = new FileStream(testcasesFilePath, FileMode.Append, FileAccess.Write, FileShare.Read);
using var w = new StreamWriter(fileStream);
w.AutoFlush = true;
await LogTycheTestCases(propertyUnderTest, w, channel, runStart).ConfigureAwait(false);
}
Expand Down

0 comments on commit da06882

Please sign in to comment.