From 54f008a5e3a9c18d0606c3314ae9f268bde7ea24 Mon Sep 17 00:00:00 2001 From: benbierens Date: Wed, 22 Mar 2023 11:07:18 +0100 Subject: [PATCH] Adds test for 1000 codex nodes in one pod --- LongTests/BasicTests/SimpleTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/LongTests/BasicTests/SimpleTests.cs b/LongTests/BasicTests/SimpleTests.cs index 02dfaf1..44d1dca 100644 --- a/LongTests/BasicTests/SimpleTests.cs +++ b/LongTests/BasicTests/SimpleTests.cs @@ -22,5 +22,16 @@ namespace LongTests.BasicTests testFile.AssertIsEqual(downloadedFile); } + + [Test, UseLongTimeouts] + public void TestEnvironmentAddressSpaceTest() + { + var group = SetupCodexNodes(1000).BringOnline(); + + var nodeIds = group.Select(n => n.GetDebugInfo().id).ToArray(); + + Assert.That(nodeIds.Length, Is.EqualTo(nodeIds.Distinct().Count()), + "Not all created nodes provided a unique id."); + } } }