Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 97d64fa

Browse files
committed
Fix PostgreSQL test on .NET Core/Linux
1 parent 92568a4 commit 97d64fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ServiceStack.OrmLite.PostgreSQL.Tests/Expressions/AuthorUseCase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ public void AuthorUsesCases()
107107
//in the string.
108108
//An underscore ("_") in the LIKE pattern matches any single character in the string.
109109
//Any other character matches itself or its lower/upper case equivalent (i.e. case-insensitive matching).
110+
//case-sensitivity matching depends on PostgreSQL underlying OS.
111+
#if NETCORE
112+
expected = System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux)? 1 : 3;
113+
#else
110114
expected = 3;
115+
#endif
116+
111117
ev.Where().Where(rn => rn.Name.EndsWith("garzon"));
112118
result = db.Select(ev);
113119
Assert.AreEqual(expected, result.Count);

0 commit comments

Comments
 (0)