Skip to content

Commit e19a516

Browse files
Shay RojanskyCopilot
andcommitted
Sync to EF 11.0.0-preview.5.26275.101
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9548832 commit e19a516

12 files changed

Lines changed: 42 additions & 22 deletions

Directory.Packages.props

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
3-
<EFCoreVersion>11.0.0-preview.5.26267.102</EFCoreVersion>
4-
<MicrosoftExtensionsVersion>11.0.0-preview.5.26267.102</MicrosoftExtensionsVersion>
5-
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.5.26267.102</MicrosoftExtensionsConfigurationVersion>
3+
<EFCoreVersion>11.0.0-preview.5.26275.101</EFCoreVersion>
4+
<MicrosoftExtensionsVersion>11.0.0-preview.5.26275.101</MicrosoftExtensionsVersion>
5+
<MicrosoftExtensionsConfigurationVersion>11.0.0-preview.5.26275.101</MicrosoftExtensionsConfigurationVersion>
66
<NpgsqlVersion>10.0.0</NpgsqlVersion>
77
</PropertyGroup>
88

@@ -28,6 +28,7 @@
2828

2929
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
3030
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
31+
<PackageVersion Include="xunit.v3" Version="4.0.0-pre.108" />
3132
<PackageVersion Include="xunit" Version="2.9.3" />
3233
<PackageVersion Include="xunit.assert" Version="2.9.3" />
3334
<PackageVersion Include="xunit.core" Version="2.9.3" />

NuGet.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<packageSource key="dotnet11">
2222
<package pattern="*" />
2323
</packageSource>
24+
<packageSource key="dotnet-eng">
25+
<package pattern="Microsoft.DotNet.*" />
26+
</packageSource>
2427
</packageSourceMapping>
2528

2629
</configuration>

global.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"version": "11.0.100-preview.4.26210.111",
44
"rollForward": "latestMinor",
55
"allowPrerelease": true
6+
},
7+
"test": {
8+
"runner": "Microsoft.Testing.Platform"
69
}
710
}

test/Directory.Build.props

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@
55
<PropertyGroup>
66
<IsPackable>false</IsPackable>
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
8+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
89

910
<!-- There's lots of use of internal EF Core APIs from the tests, suppress the analyzer warnings for those -->
10-
<NoWarn>$(NoWarn);xUnit1003;xUnit1004;xUnit1013;xUnit1024;EF1001</NoWarn>
11+
<NoWarn>$(NoWarn);CS0618;xUnit1003;xUnit1004;xUnit1013;xUnit1024;xUnit1051;EF1001</NoWarn>
12+
</PropertyGroup>
13+
14+
<PropertyGroup>
15+
<OutputType>Exe</OutputType>
16+
<TestRunnerName>XUnitV3</TestRunnerName>
17+
<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --filter-not-trait category=failing --ignore-exit-code 8</TestingPlatformCommandLineArguments>
1118
</PropertyGroup>
1219

1320
<ItemGroup>
1421
<PackageReference Include="Microsoft.NET.Test.Sdk" />
15-
<PackageReference Include="xunit" />
22+
<PackageReference Include="xunit.v3" />
1623
<PackageReference Include="xunit.runner.visualstudio" />
1724
<PackageReference Include="GitHubActionsTestLogger" />
1825
<PackageReference Include="Npgsql" />
@@ -24,7 +31,6 @@
2431

2532
<ItemGroup>
2633
<Using Include="Xunit" />
27-
<Using Include="Xunit.Abstractions" />
2834
<Using Include="Microsoft.EntityFrameworkCore.TestUtilities" />
2935
<Using Include="Microsoft.EntityFrameworkCore.TestUtilities.Xunit" />
3036
</ItemGroup>

test/EFCore.PG.FunctionalTests/ComputedColumnTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public void Can_use_computed_columns_with_nullable_enum()
134134

135135
protected NpgsqlTestStore TestStore { get; private set; } = null!;
136136

137-
public async Task InitializeAsync()
137+
public async ValueTask InitializeAsync()
138138
=> TestStore = await NpgsqlTestStore.CreateInitializedAsync("ComputedColumnTest");
139139

140-
public async Task DisposeAsync()
140+
public async ValueTask DisposeAsync()
141141
=> await TestStore.DisposeAsync();
142142
}

test/EFCore.PG.FunctionalTests/Query/CompatibilityQueryNpgsqlTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public virtual CompatibilityContext CreateRedshiftContext()
7474
return new CompatibilityContext(builder.Options);
7575
}
7676

77-
public virtual async Task InitializeAsync()
77+
public virtual async ValueTask InitializeAsync()
7878
{
7979
_testStore = NpgsqlTestStoreFactory.Instance.GetOrCreate(StoreName);
8080
await _testStore.InitializeAsync(null, CreateContext, c => CompatibilityContext.SeedAsync((CompatibilityContext)c));
@@ -85,7 +85,7 @@ public virtual void Dispose()
8585
{
8686
}
8787

88-
public virtual async Task DisposeAsync()
88+
public virtual async ValueTask DisposeAsync()
8989
=> await _testStore.DisposeAsync();
9090
}
9191

test/EFCore.PG.FunctionalTests/Query/LegacyTimestampQueryTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ public LegacyTimestampQueryFixture()
110110
NpgsqlTypeMappingSource.LegacyTimestampBehavior = true;
111111
}
112112

113-
public override Task DisposeAsync()
113+
public override ValueTask DisposeAsync()
114114
{
115115
NpgsqlTypeMappingSource.LegacyTimestampBehavior = false;
116-
return Task.CompletedTask;
116+
return ValueTask.CompletedTask;
117117
}
118118

119119
protected override async Task SeedAsync(TimestampQueryContext context)

test/EFCore.PG.FunctionalTests/Query/NorthwindDbFunctionsQueryNpgsqlTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ WHERE c."ContactName" NOT ILIKE '%M%' OR c."ContactName" IS NULL
127127
#region Collation
128128

129129
[MinimumPostgresVersion(12, 0)]
130-
[PlatformSkipCondition(TestUtilities.Xunit.TestPlatform.Windows, SkipReason = "ICU non-deterministic doesn't seem to work on Windows?")]
130+
[SkipOnPlatform(TestPlatforms.Windows, "ICU non-deterministic doesn't seem to work on Windows?")]
131131
public override async Task Collate_case_insensitive(bool async)
132132
{
133133
await base.Collate_case_insensitive(async);

test/EFCore.PG.FunctionalTests/Scaffolding/NpgsqlDatabaseModelFactoryTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ protected override ITestStoreFactory TestStoreFactory
22142214
public new NpgsqlTestStore TestStore
22152215
=> (NpgsqlTestStore)base.TestStore;
22162216

2217-
public override async Task InitializeAsync()
2217+
public override async ValueTask InitializeAsync()
22182218
{
22192219
await base.InitializeAsync();
22202220
await TestStore.ExecuteNonQueryAsync("CREATE SCHEMA IF NOT EXISTS db2");

test/EFCore.PG.FunctionalTests/SequenceEndToEndTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ private class Unicon
391391

392392
protected NpgsqlTestStore TestStore { get; private set; } = null!;
393393

394-
public async Task InitializeAsync()
394+
public async ValueTask InitializeAsync()
395395
=> TestStore = await NpgsqlTestStore.CreateInitializedAsync("SequenceEndToEndTest");
396396

397-
public async Task DisposeAsync()
397+
public async ValueTask DisposeAsync()
398398
=> await TestStore.DisposeAsync();
399399
}

0 commit comments

Comments
 (0)