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.
This commit is contained in:
parent
3e61104425
commit
288bb9622d
|
|
@ -4,6 +4,7 @@
|
|||
using System;
|
||||
using System.Buffers;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
|
@ -310,7 +311,7 @@ namespace Microsoft.AspNetCore.SignalR.Common.Tests.Internal.Protocol
|
|||
IntProp = 43,
|
||||
DoubleProp = 3.14159,
|
||||
StringProp = "test",
|
||||
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM")
|
||||
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM", CultureInfo.InvariantCulture)
|
||||
}, streamItemMessage.Item);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue