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:
Martin Costello 2020-08-13 21:56:08 +01:00 committed by GitHub
parent 3e61104425
commit 288bb9622d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}