Skip to content

Commit

Permalink
Migrate tests to net6.0 + newer Microsoft.Data.Sqlite (which works a …
Browse files Browse the repository at this point in the history
…bit differently)
  • Loading branch information
VitaliyMF committed Nov 16, 2023
1 parent 4a9db07 commit a6d5226
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore src
- name: Build Lib
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 1.0.{build}
os: Visual Studio 2019
os: Visual Studio 2022
configuration: Release
platform: Any CPU

Expand Down
10 changes: 5 additions & 5 deletions src/NReco.Data.Tests/NReco.Data.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand All @@ -11,11 +11,11 @@

<ItemGroup>
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.1.4" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.25" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.0" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions src/NReco.Data.Tests/SqliteDbFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void OpenConnection( Action a ) {
}

public void Dispose() {
SqliteConnection.ClearPool(DbConnection);
DbConnection.Dispose();
if (File.Exists(DbFileName))
File.Delete(DbFileName);
Expand Down

0 comments on commit a6d5226

Please sign in to comment.