Skip to content

Commit 11762c7

Browse files
committed
wip: tests
1 parent 9ad10ec commit 11762c7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/Http/LogStream.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class LogStream : IDisposable {
2626
internal RotatingLogPolicy? rotatingLogPolicy;
2727

2828
private string? filePath;
29-
private bool isDisposed, isDisposing;
29+
private bool isDisposed;
3030
private CircularBuffer<string>? _bufferingContent;
3131

3232
/// <summary>
@@ -433,12 +433,12 @@ async void ProcessQueue () {
433433
}
434434
}
435435
}
436-
437-
writeEvent.Set ();
438436
}
437+
438+
writeEvent.Set ();
439439
}
440440
finally {
441-
if (!isDisposing)
441+
if (!isDisposed)
442442
writeEvent.Set ();
443443
}
444444
}
@@ -455,7 +455,6 @@ string GetExceptionEntry ( Exception exception, string? context = null ) {
455455
protected virtual void Dispose ( bool disposing ) {
456456
if (!isDisposed) {
457457
if (disposing) {
458-
isDisposing = true;
459458
channel.Writer.Complete ();
460459
Flush ();
461460
TextWriter?.Dispose ();

tests/MSTestSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[assembly: Parallelize ( Scope = ExecutionScope.MethodLevel )]
1+
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

tests/tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)