Skip to content

Commit 769468d

Browse files
GarvinGarvin
Garvin
authored and
Garvin
committed
Updating tests to latest msql db and provider
1 parent ed98a5d commit 769468d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docker-compose-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
- mssql
1111
- pgsql
1212
mysql:
13-
image: mysql:5.7
13+
image: mysql
1414
container_name: dotnet-test-mysql
1515
environment:
1616
MYSQL_ROOT_PASSWORD: "Rea11ytrong_3"

test/DatatablesParser.Tests/DatatablesParser.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.0.0" />
1212
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" />
1313
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.0.0" />
14-
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.0.0-rtm-10058" />
14+
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.0.1" />
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
1616
<PackageReference Include="xunit" Version="2.2.0" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />

test/DatatablesParser.Tests/MysqlEntityTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ public void TotalDisplayCustomFormatTest()
107107

108108
}
109109

110-
[Fact]
110+
[Fact]
111111
public void TotalDisplayIndividualMutiTest()
112112
{
113-
var context = TestHelper.GetInMemoryContext();
113+
var context = TestHelper.GetMysqlContext();
114114
var p = TestHelper.CreateParams();
115115
var displayLength = 1;
116116

test/DatatablesParser.Tests/TestHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Linq;
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.EntityFrameworkCore;
8-
using Pomelo.EntityFrameworkCore.MySql;
8+
using Pomelo.EntityFrameworkCore;
99
using Npgsql.EntityFrameworkCore.PostgreSQL;
1010
using Microsoft.Extensions.Logging;
1111
using Microsoft.EntityFrameworkCore.Diagnostics;

0 commit comments

Comments
 (0)