Skip to content

Commit 288bb96

Browse files
Fix test that fails on machine using en-GB (#24704)
Fix test that fails due to the month and date being swapped when run on a machine configured to use UK English.
1 parent 3e61104 commit 288bb96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SignalR/common/SignalR.Common/test/Internal/Protocol/JsonHubProtocolTestsBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Buffers;
66
using System.Collections.Generic;
7+
using System.Globalization;
78
using System.IO;
89
using System.Linq;
910
using System.Text;
@@ -310,7 +311,7 @@ public void ReadCaseInsensitivePropertiesByDefault()
310311
IntProp = 43,
311312
DoubleProp = 3.14159,
312313
StringProp = "test",
313-
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM")
314+
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM", CultureInfo.InvariantCulture)
314315
}, streamItemMessage.Item);
315316
}
316317

0 commit comments

Comments
 (0)