From c25a0d7b68d66c6ab3849a3b4333964faea6adc9 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 15 Sep 2023 13:33:38 +0300 Subject: [PATCH] React to PG16 collation-related change in tests (#2870) (cherry picked from commit 03f9eb362cdd116b66af0c2c08983368b080d569) --- .../Migrations/MigrationsNpgsqlTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs b/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs index 194b3458c..252854707 100644 --- a/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs +++ b/test/EFCore.PG.FunctionalTests/Migrations/MigrationsNpgsqlTest.cs @@ -2912,21 +2912,21 @@ public virtual async Task Create_collation_non_deterministic() { await Test( _ => { }, - builder => builder.HasCollation("some_collation", locale: "en-u-ks-primary", provider: "icu", deterministic: false), + builder => builder.HasCollation("some_collation", locale: "en-u-ks-level1", provider: "icu", deterministic: false), model => { var collation = Assert.Single(PostgresCollation.GetCollations(model)); Assert.Equal("some_collation", collation.Name); Assert.Equal("icu", collation.Provider); - Assert.Equal("en-u-ks-primary", collation.LcCollate); - Assert.Equal("en-u-ks-primary", collation.LcCtype); + Assert.Equal("en-u-ks-level1", collation.LcCollate); + Assert.Equal("en-u-ks-level1", collation.LcCtype); Assert.False(collation.IsDeterministic); }); AssertSql( """ -CREATE COLLATION some_collation (LOCALE = 'en-u-ks-primary', +CREATE COLLATION some_collation (LOCALE = 'en-u-ks-level1', PROVIDER = icu, DETERMINISTIC = False );