Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DDCA18BA3 for ; Mon, 7 Dec 2015 10:42:27 +0000 (UTC) Received: (qmail 35279 invoked by uid 500); 7 Dec 2015 10:42:27 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 35242 invoked by uid 500); 7 Dec 2015 10:42:27 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 35233 invoked by uid 99); 7 Dec 2015 10:42:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 10:42:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E9DD3E0492; Mon, 7 Dec 2015 10:42:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Message-Id: <991d40c8bd024dc786288c7fe039094f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: IGNITE-2090 .Net: EventsTest.TestSerialization fails Date: Mon, 7 Dec 2015 10:42:26 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-1.5 34596c63c -> c10b112ad 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 Commit: c10b112ad0693035d6bb2b1c782fe09f11aaded4 Parents: 34596c6 Author: Pavel Tupitsyn Authored: Mon Dec 7 13:42:17 2015 +0300 Committer: Pavel Tupitsyn 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); } ///