From 3e1b361b7b15935d99bff3bf9b5f969e90e7385a Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 28 Sep 2023 15:04:21 +0200 Subject: [PATCH] Fixes cleanup of online codexnodes in Codex test fixture --- Tests/CodexTests/AutoBootstrapDistTest.cs | 3 --- Tests/CodexTests/CodexDistTest.cs | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Tests/CodexTests/AutoBootstrapDistTest.cs b/Tests/CodexTests/AutoBootstrapDistTest.cs index 86c7c61..869453a 100644 --- a/Tests/CodexTests/AutoBootstrapDistTest.cs +++ b/Tests/CodexTests/AutoBootstrapDistTest.cs @@ -5,13 +5,10 @@ namespace Tests { public class AutoBootstrapDistTest : CodexDistTest { - private readonly List onlineCodexNodes = new List(); - [SetUp] public void SetUpBootstrapNode() { BootstrapNode = AddCodex(s => s.WithName("BOOTSTRAP")); - onlineCodexNodes.Add(BootstrapNode); } [TearDown] diff --git a/Tests/CodexTests/CodexDistTest.cs b/Tests/CodexTests/CodexDistTest.cs index f2e863d..d521ad4 100644 --- a/Tests/CodexTests/CodexDistTest.cs +++ b/Tests/CodexTests/CodexDistTest.cs @@ -6,6 +6,7 @@ using DistTestCore; using DistTestCore.Helpers; using DistTestCore.Logs; using GethPlugin; +using NUnit.Framework; using NUnit.Framework.Constraints; namespace Tests @@ -22,6 +23,12 @@ namespace Tests ProjectPlugin.Load(); } + [TearDown] + public void TearDownCodexFixture() + { + onlineCodexNodes.Clear(); + } + protected override void Initialize(FixtureLog fixtureLog) { var localBuilder = new LocalCodexBuilder(fixtureLog);