Skip to content

Commit 0944a92

Browse files
committed
Merge pull request #785 from andersosthus/range-filter-test-fix
RangeFilter Unit test failing due to assertion not being culture invaria...
2 parents 1d867ed + 33fc843 commit 0944a92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/Nest.Tests.Unit/Search/Filter/Singles/RangeFilterJson.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Globalization;
23
using NUnit.Framework;
34
using Nest.Tests.MockData.Domain;
45

@@ -147,8 +148,8 @@ public void RangeDatesCustom()
147148
filter : {
148149
range: {
149150
""startedOn"": {
150-
gte: """ + lowerBound.ToString(format) + @""",
151-
lt: """ + upperBound.ToString(format) + @""",
151+
gte: """ + lowerBound.ToString(format, CultureInfo.InvariantCulture) + @""",
152+
lt: """ + upperBound.ToString(format, CultureInfo.InvariantCulture) + @""",
152153
}
153154
}
154155

0 commit comments

Comments
 (0)