IGNITE-2090 .Net: EventsTest.TestSerialization fails
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c10b112a Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c10b112a Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c10b112a Branch: refs/heads/ignite-1.5.1 Commit: c10b112ad0693035d6bb2b1c782fe09f11aaded4 Parents: 34596c6 Author: Pavel Tupitsyn <ptupit...@gridgain.com> Authored: Mon Dec 7 13:42:17 2015 +0300 Committer: Pavel Tupitsyn <ptupit...@gridgain.com> Committed: Mon Dec 7 13:42:17 2015 +0300 ---------------------------------------------------------------------- modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c10b112a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs index 9f22355..a538cb4 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/EventsTest.cs @@ -568,7 +568,8 @@ namespace Apache.Ignite.Core.Tests Assert.AreEqual(EventType.SwapSpaceCleared, evt.Type); Assert.IsNotNullOrEmpty(evt.Name); Assert.AreNotEqual(Guid.Empty, evt.Id.GlobalId); - Assert.IsTrue((evt.Timestamp - DateTime.Now).TotalSeconds < 10); + Assert.IsTrue(Math.Abs((evt.Timestamp - DateTime.UtcNow).TotalSeconds) < 20, + "Invalid event timestamp: '{0}', current time: '{1}'", evt.Timestamp, DateTime.Now); } /// <summary>