Skip to content

Commit

Permalink
Relax deadline check in c#
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-g committed Jun 18, 2019
1 parent 7f327f1 commit 9b49f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Core.Tests/TimeoutsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void DeadlineTransferredToServer()
// A fairly relaxed check that the deadline set by client and deadline seen by server
// are in agreement. C core takes care of the work with transferring deadline over the wire,
// so we don't need an exact check here.
Assert.IsTrue(Math.Abs((clientDeadline - context.Deadline).TotalMilliseconds) < 5000);
Assert.IsTrue(Math.Abs((clientDeadline - context.Deadline).TotalHours) < 1);
return Task.FromResult("PASS");
});
Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: clientDeadline)), "abc");
Expand Down

0 comments on commit 9b49f03

Please sign in to comment.