Skip to content

Commit 7b04a42

Browse files
committed
React to PG16 collation-related change in tests (#2870)
(cherry picked from commit 03f9eb3)
1 parent 19d05be commit 7b04a42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2777,20 +2777,20 @@ public virtual async Task Create_collation_non_deterministic()
27772777
{
27782778
await Test(
27792779
builder => { },
2780-
builder => builder.HasCollation("some_collation", locale: "en-u-ks-primary", provider: "icu", deterministic: false),
2780+
builder => builder.HasCollation("some_collation", locale: "en-u-ks-level1", provider: "icu", deterministic: false),
27812781
model =>
27822782
{
27832783
var collation = Assert.Single(PostgresCollation.GetCollations(model));
27842784

27852785
Assert.Equal("some_collation", collation.Name);
27862786
Assert.Equal("icu", collation.Provider);
2787-
Assert.Equal("en-u-ks-primary", collation.LcCollate);
2788-
Assert.Equal("en-u-ks-primary", collation.LcCtype);
2787+
Assert.Equal("en-u-ks-level1", collation.LcCollate);
2788+
Assert.Equal("en-u-ks-level1", collation.LcCtype);
27892789
Assert.False(collation.IsDeterministic);
27902790
});
27912791

27922792
AssertSql(
2793-
@"CREATE COLLATION some_collation (LOCALE = 'en-u-ks-primary',
2793+
@"CREATE COLLATION some_collation (LOCALE = 'en-u-ks-level1',
27942794
PROVIDER = icu,
27952795
DETERMINISTIC = False
27962796
);");

0 commit comments

Comments
 (0)