Skip to content

Commit

Permalink
Relax csharp deadline test
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-g committed Jun 18, 2019
1 parent e291396 commit 7f327f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csharp/Grpc.Core.Tests/ContextPropagationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public async Task PropagateDeadline()
var deadline = DateTime.UtcNow.AddDays(7);
helper.UnaryHandler = new UnaryServerMethod<string, string>((request, context) =>
{
Assert.IsTrue(context.Deadline < deadline.AddMinutes(1));
Assert.IsTrue(context.Deadline > deadline.AddMinutes(-1));
Assert.IsTrue(context.Deadline < deadline.AddHours(1));
Assert.IsTrue(context.Deadline > deadline.AddHours(-1));
return Task.FromResult("PASS");
});

Expand Down

0 comments on commit 7f327f1

Please sign in to comment.