From d68961548187435fbba927f05607a6a788039d7e Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko Date: Wed, 13 Feb 2019 18:00:51 +0300 Subject: [PATCH] Fix tests duration --- ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs | 2 +- ReportPortal.NUnitExtension/ReportPortalListener.Test.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs b/ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs index bd985c1..19ae330 100644 --- a/ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs +++ b/ReportPortal.NUnitExtension/ReportPortalListener.Suite.cs @@ -100,7 +100,7 @@ private void FinishSuite(XmlDocument xmlDoc) // finishing suite var finishSuiteRequest = new FinishTestItemRequest { - EndTime = _flowItems[id].StartTime.AddMilliseconds(duration), + EndTime = _flowItems[id].StartTime.AddSeconds(duration), Status = _statusMap[result] }; diff --git a/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs b/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs index 189fafc..d903e8a 100644 --- a/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs +++ b/ReportPortal.NUnitExtension/ReportPortalListener.Test.cs @@ -198,7 +198,7 @@ public void FinishTest(XmlDocument xmlDoc) // finishing test var finishTestRequest = new FinishTestItemRequest { - EndTime = _flowItems[id].StartTime.AddMilliseconds(duration), + EndTime = _flowItems[id].StartTime.AddSeconds(duration), Status = _statusMap[result] };