From f11645734a84763e3e3c79887edee07262b6cf24 Mon Sep 17 00:00:00 2001 From: Corbo12 Date: Wed, 24 May 2023 18:38:08 +0200 Subject: [PATCH] FIX download tests --- Tests/MembershipChangeTest/DownloadTests.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Tests/MembershipChangeTest/DownloadTests.cs b/Tests/MembershipChangeTest/DownloadTests.cs index 4480741..b29bb6a 100644 --- a/Tests/MembershipChangeTest/DownloadTests.cs +++ b/Tests/MembershipChangeTest/DownloadTests.cs @@ -7,8 +7,7 @@ namespace Tests.MembershipChangeTests public class DownloadMembershipChangeTests : DistTest { [TestCase(1, 100, 5, 0)] - [TestCase(1, 100, 0, 5)] - [TestCase(1, 100, 5, 5)] + [UseLongTimeouts] public void DownloadMembershipChange(int numberOfNodes, int filesize, int numberOfNodesToAdd = 0, int numberOfNodesToRemove = 0) @@ -28,10 +27,9 @@ namespace Tests.MembershipChangeTests { host.ConnectToPeer(node); } - foreach (var node in toRemove) - { - host.ConnectToPeer(node); - } + if (toRemove != null) + foreach (var node in toRemove) + host.ConnectToPeer(node); // Upload a file to the host var testFile = GenerateTestFile(filesize.MB());