fix test on windows

pull/2643/head
Jan Tattermusch 10 years ago
parent 7a3ac62d9c
commit 6835b92c8b
  1. 4
      src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs

@ -190,8 +190,8 @@ namespace Grpc.Core.Internal.Tests
// we can only get overflow in Timespec on 32-bit
if (IntPtr.Size == 4)
{
Assert.AreEqual(Timespec.InfFuture, new DateTime(2040, 1, 1, 0, 0, 0, DateTimeKind.Utc));
Assert.AreEqual(Timespec.InfPast, new DateTime(1800, 1, 1, 0, 0, 0, DateTimeKind.Utc));
Assert.AreEqual(Timespec.InfFuture, Timespec.FromDateTime(new DateTime(2040, 1, 1, 0, 0, 0, DateTimeKind.Utc)));
Assert.AreEqual(Timespec.InfPast, Timespec.FromDateTime(new DateTime(1800, 1, 1, 0, 0, 0, DateTimeKind.Utc)));
}
else
{

Loading…
Cancel
Save