Skip to content

Commit afecebe

Browse files
committed
Add culture to unit testing
#875
1 parent cf000f2 commit afecebe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Tests/Nest.Tests.Unit/BaseJsonTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Globalization;
34
using System.Linq;
45
using System.Text.RegularExpressions;
6+
using System.Threading;
57
using Elasticsearch.Net;
68
using Elasticsearch.Net.Connection;
79
using NUnit.Framework;
@@ -28,6 +30,7 @@ public class BaseJsonTests
2830

2931
public BaseJsonTests()
3032
{
33+
Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-us");
3134
this._settings = new ConnectionSettings(UnitTestDefaults.Uri, UnitTestDefaults.DefaultIndex)
3235
.DisablePing()
3336
.ExposeRawResponse();

0 commit comments

Comments
 (0)