Skip to content

Commit 56c20d3

Browse files
author
Developer
committed
Test fixture fix: replaced the slow-finite-sink + Thread.Sleep approach with a permanently-blocking sink (TaskCompletionSource sinkReleaser) and moved pipeline.Stop() onto Task.Run. The drain timeout now fires unconditionally because the sink never unblocks on its own. The 1s
1 parent 72afe01 commit 56c20d3

File tree

44 files changed

+193
-208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+193
-208
lines changed
Binary file not shown.
Binary file not shown.

tests/ByTech.EmbeddedCommitLog.TestUtilities/obj/ByTech.EmbeddedCommitLog.TestUtilities.csproj.nuget.dgspec.json

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
{
22
"format": 1,
33
"restore": {
4-
"C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\tests\\ByTech.EmbeddedCommitLog.TestUtilities\\ByTech.EmbeddedCommitLog.TestUtilities.csproj": {}
4+
"/src/tests/ByTech.EmbeddedCommitLog.TestUtilities/ByTech.EmbeddedCommitLog.TestUtilities.csproj": {}
55
},
66
"projects": {
7-
"C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\ByTech.EmbeddedCommitLog.csproj": {
7+
"/src/src/ByTech.EmbeddedCommitLog/ByTech.EmbeddedCommitLog.csproj": {
88
"version": "1.1.0",
99
"restore": {
10-
"projectUniqueName": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\ByTech.EmbeddedCommitLog.csproj",
10+
"projectUniqueName": "/src/src/ByTech.EmbeddedCommitLog/ByTech.EmbeddedCommitLog.csproj",
1111
"projectName": "ByTech.EmbeddedCommitLog",
12-
"projectPath": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\ByTech.EmbeddedCommitLog.csproj",
13-
"packagesPath": "C:\\Users\\Developer\\.nuget\\packages\\",
14-
"outputPath": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\obj\\",
12+
"projectPath": "/src/src/ByTech.EmbeddedCommitLog/ByTech.EmbeddedCommitLog.csproj",
13+
"packagesPath": "/root/.nuget/packages/",
14+
"outputPath": "/src/src/ByTech.EmbeddedCommitLog/obj/",
1515
"projectStyle": "PackageReference",
1616
"centralPackageVersionsManagementEnabled": true,
17-
"fallbackFolders": [
18-
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
19-
],
2017
"configFilePaths": [
21-
"C:\\Users\\Developer\\AppData\\Roaming\\NuGet\\NuGet.Config",
22-
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
23-
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
18+
"/root/.nuget/NuGet/NuGet.Config"
2419
],
2520
"originalTargetFrameworks": [
2621
"net9.0"
2722
],
2823
"sources": {
29-
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
3024
"https://api.nuget.org/v3/index.json": {}
3125
},
3226
"frameworks": {
@@ -80,41 +74,35 @@
8074
"privateAssets": "all"
8175
}
8276
},
83-
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.312/PortableRuntimeIdentifierGraph.json"
77+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.312/PortableRuntimeIdentifierGraph.json"
8478
}
8579
}
8680
},
87-
"C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\tests\\ByTech.EmbeddedCommitLog.TestUtilities\\ByTech.EmbeddedCommitLog.TestUtilities.csproj": {
81+
"/src/tests/ByTech.EmbeddedCommitLog.TestUtilities/ByTech.EmbeddedCommitLog.TestUtilities.csproj": {
8882
"version": "1.0.0",
8983
"restore": {
90-
"projectUniqueName": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\tests\\ByTech.EmbeddedCommitLog.TestUtilities\\ByTech.EmbeddedCommitLog.TestUtilities.csproj",
84+
"projectUniqueName": "/src/tests/ByTech.EmbeddedCommitLog.TestUtilities/ByTech.EmbeddedCommitLog.TestUtilities.csproj",
9185
"projectName": "ByTech.EmbeddedCommitLog.TestUtilities",
92-
"projectPath": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\tests\\ByTech.EmbeddedCommitLog.TestUtilities\\ByTech.EmbeddedCommitLog.TestUtilities.csproj",
93-
"packagesPath": "C:\\Users\\Developer\\.nuget\\packages\\",
94-
"outputPath": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\tests\\ByTech.EmbeddedCommitLog.TestUtilities\\obj\\",
86+
"projectPath": "/src/tests/ByTech.EmbeddedCommitLog.TestUtilities/ByTech.EmbeddedCommitLog.TestUtilities.csproj",
87+
"packagesPath": "/root/.nuget/packages/",
88+
"outputPath": "/src/tests/ByTech.EmbeddedCommitLog.TestUtilities/obj/",
9589
"projectStyle": "PackageReference",
9690
"centralPackageVersionsManagementEnabled": true,
97-
"fallbackFolders": [
98-
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
99-
],
10091
"configFilePaths": [
101-
"C:\\Users\\Developer\\AppData\\Roaming\\NuGet\\NuGet.Config",
102-
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
103-
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
92+
"/root/.nuget/NuGet/NuGet.Config"
10493
],
10594
"originalTargetFrameworks": [
10695
"net9.0"
10796
],
10897
"sources": {
109-
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
11098
"https://api.nuget.org/v3/index.json": {}
11199
},
112100
"frameworks": {
113101
"net9.0": {
114102
"targetAlias": "net9.0",
115103
"projectReferences": {
116-
"C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\ByTech.EmbeddedCommitLog.csproj": {
117-
"projectPath": "C:\\Users\\Developer\\source\\repos\\EmbeddedCommitLog\\src\\ByTech.EmbeddedCommitLog\\ByTech.EmbeddedCommitLog.csproj"
104+
"/src/src/ByTech.EmbeddedCommitLog/ByTech.EmbeddedCommitLog.csproj": {
105+
"projectPath": "/src/src/ByTech.EmbeddedCommitLog/ByTech.EmbeddedCommitLog.csproj"
118106
}
119107
}
120108
}
@@ -169,7 +157,7 @@
169157
"privateAssets": "all"
170158
}
171159
},
172-
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.312/PortableRuntimeIdentifierGraph.json"
160+
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.312/PortableRuntimeIdentifierGraph.json"
173161
}
174162
}
175163
}

tests/ByTech.EmbeddedCommitLog.TestUtilities/obj/ByTech.EmbeddedCommitLog.TestUtilities.csproj.nuget.g.props

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
55
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
66
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7-
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8-
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Developer\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
7+
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/root/.nuget/packages/</NuGetPackageRoot>
8+
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/root/.nuget/packages/</NuGetPackageFolders>
99
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
1010
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.0</NuGetToolVersion>
1111
</PropertyGroup>
1212
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
13-
<SourceRoot Include="C:\Users\Developer\.nuget\packages\" />
14-
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
13+
<SourceRoot Include="/root/.nuget/packages/" />
1514
</ItemGroup>
1615
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
17-
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.props" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.props')" />
18-
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform.msbuild\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.MSBuild.props" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform.msbuild\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.MSBuild.props')" />
19-
<Import Project="$(NuGetPackageRoot)xunit.v3.core\1.0.0\build\xunit.v3.core.props" Condition="Exists('$(NuGetPackageRoot)xunit.v3.core\1.0.0\build\xunit.v3.core.props')" />
16+
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.props" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.props')" />
17+
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform.msbuild/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.MSBuild.props" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform.msbuild/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.MSBuild.props')" />
18+
<Import Project="$(NuGetPackageRoot)xunit.v3.core/1.0.0/build/xunit.v3.core.props" Condition="Exists('$(NuGetPackageRoot)xunit.v3.core/1.0.0/build/xunit.v3.core.props')" />
2019
</ImportGroup>
2120
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
22-
<Pkgxunit_analyzers Condition=" '$(Pkgxunit_analyzers)' == '' ">C:\Users\Developer\.nuget\packages\xunit.analyzers\1.18.0</Pkgxunit_analyzers>
21+
<Pkgxunit_analyzers Condition=" '$(Pkgxunit_analyzers)' == '' ">/root/.nuget/packages/xunit.analyzers/1.18.0</Pkgxunit_analyzers>
2322
</PropertyGroup>
2423
</Project>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" standalone="no"?>
22
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4-
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform.msbuild\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.MSBuild.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform.msbuild\1.4.3\buildTransitive\net8.0\Microsoft.Testing.Platform.MSBuild.targets')" />
5-
<Import Project="$(NuGetPackageRoot)xunit.v3.core\1.0.0\build\xunit.v3.core.targets" Condition="Exists('$(NuGetPackageRoot)xunit.v3.core\1.0.0\build\xunit.v3.core.targets')" />
4+
<Import Project="$(NuGetPackageRoot)microsoft.testing.platform.msbuild/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.MSBuild.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.testing.platform.msbuild/1.4.3/buildTransitive/net8.0/Microsoft.Testing.Platform.MSBuild.targets')" />
5+
<Import Project="$(NuGetPackageRoot)xunit.v3.core/1.0.0/build/xunit.v3.core.targets" Condition="Exists('$(NuGetPackageRoot)xunit.v3.core/1.0.0/build/xunit.v3.core.targets')" />
66
</ImportGroup>
77
</Project>

tests/ByTech.EmbeddedCommitLog.TestUtilities/obj/Debug/net9.0/ByTech.EmbeddedCommitLog.TestUtilities.AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2026 Branimir Bajt")]
1616
[assembly: System.Reflection.AssemblyDescriptionAttribute("Native C# Persisted Embedded Commit Log")]
1717
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18-
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5ea69a16c07c53373a1cb757db230bf9a4ce0fe8")]
18+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+98dc6abc4aea7b659004c96e18eba6a1338b5a65")]
1919
[assembly: System.Reflection.AssemblyProductAttribute("ByTech.EmbeddedCommitLog.TestUtilities")]
2020
[assembly: System.Reflection.AssemblyTitleAttribute("ByTech.EmbeddedCommitLog.TestUtilities")]
2121
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e6a36b12525c342965d2ae62b587e41b3791a79973d3392c6bb9191542c92779
1+
4a9004b57b48cd71afbe81d02ad3a148175e21be5083fc03187933aae0c31fc2

0 commit comments

Comments
 (0)