From 9b03fff032372a29ecf9f9b8f50102fd4acb2ee2 Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 20 Jun 2023 13:37:58 +0200 Subject: [PATCH] Time formatting in peer download test helper --- DistTestCore/Helpers/PeerDownloadTestHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DistTestCore/Helpers/PeerDownloadTestHelpers.cs b/DistTestCore/Helpers/PeerDownloadTestHelpers.cs index a39e945..2626d5f 100644 --- a/DistTestCore/Helpers/PeerDownloadTestHelpers.cs +++ b/DistTestCore/Helpers/PeerDownloadTestHelpers.cs @@ -41,7 +41,7 @@ namespace DistTestCore.Helpers float sizeInMB = size.ToMB(); var timePerMB = timePerDownload / sizeInMB; - test.Log($"Performed {numberOfDownloads} downloads of {size} in {timeTaken.TotalSeconds} seconds, for an average of {timePerMB} seconds per MB."); + test.Log($"Performed {numberOfDownloads} downloads of {size} in {timeTaken.TotalSeconds} seconds, for an average of {timePerMB.TotalSeconds} seconds per MB."); Assert.That(timePerMB, Is.LessThan(CodexContainerRecipe.MaxDownloadTimePerMegabyte), "MaxDownloadTimePerMegabyte performance threshold breached."); }