aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-23 18:51:38 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-23 18:51:38 -0700
commit6835b92c8b2f5ea7bb692e6fb52983a045a54bf9 (patch)
tree0ef21c6a47eeb20a3e5956a81fc36b8d96223492
parent7a3ac62d9cdd1392b06a4bb94c57a4828ec0b32e (diff)
fix test on windows
-rw-r--r--src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs b/src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs
index e38d48d464..874df02baa 100644
--- a/src/csharp/Grpc.Core.Tests/Internal/TimespecTest.cs
+++ b/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
{