Postgres testing: explicitly configure database ordering to be non-linguistic (#16748)

This makes for reasonable sorting and ordering behaviour that should be the same across platforms.
This commit is contained in:
Raphael Speyer 2023-10-17 15:13:38 +11:00 committed by GitHub
parent ff8316320a
commit 86519d526a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -800,7 +800,6 @@ abstract class QueryStoreAndAuthDependentIntegrationTest
matches = Seq(withBazRecord("c")),
doesNotMatch = Seq(withBazRecord("a")),
),
/* TODO(raphael-speyer-da) Re-enable this test. See https://digitalasset.atlassian.net/browse/LT-15
Scenario(
"lt string with sketchy value which is a single quote",
kbvarId,
@ -810,7 +809,6 @@ abstract class QueryStoreAndAuthDependentIntegrationTest
matches = Seq(withBazRecord(" ")), // Less than '
doesNotMatch = Seq(withBazRecord("A")), // Not less than '
),
*/
Scenario(
"lt string with sketchy value which uses unicode quote char",
kbvarId,

View File

@ -144,9 +144,9 @@ trait PostgresAround {
"initialize the PostgreSQL database",
Tool.initdb,
s"--username=$userName",
if (isWindows) "--locale=English_United States" else "--locale=en_US.UTF-8",
"--locale=C",
"-E",
"UNICODE",
"UTF8",
"-A",
"trust",
dataDir.toString.replace("\\", "/"),