From 2ba5a1491af086d2f9e0b3431891a34ed06b6b8b Mon Sep 17 00:00:00 2001 From: benbierens Date: Wed, 26 Apr 2023 15:31:01 +0200 Subject: [PATCH] Updates to latest image --- DistTestCore/Codex/CodexContainerRecipe.cs | 4 ++-- Tests/BasicTests/PeerTests.cs | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/DistTestCore/Codex/CodexContainerRecipe.cs b/DistTestCore/Codex/CodexContainerRecipe.cs index d7f2529..040f44e 100644 --- a/DistTestCore/Codex/CodexContainerRecipe.cs +++ b/DistTestCore/Codex/CodexContainerRecipe.cs @@ -5,8 +5,8 @@ namespace DistTestCore.Codex { public class CodexContainerRecipe : ContainerRecipeFactory { - //public const string DockerImage = "thatbenbierens/nim-codex:sha-bf5512b"; - public const string DockerImage = "thatbenbierens/codexlocal:latest"; + public const string DockerImage = "thatbenbierens/nim-codex:sha-92ea752"; + //public const string DockerImage = "thatbenbierens/codexlocal:latest"; public const string MetricsPortTag = "metrics_port"; protected override string Image => DockerImage; diff --git a/Tests/BasicTests/PeerTests.cs b/Tests/BasicTests/PeerTests.cs index 37f04e9..fa566c7 100644 --- a/Tests/BasicTests/PeerTests.cs +++ b/Tests/BasicTests/PeerTests.cs @@ -48,11 +48,14 @@ namespace Tests.BasicTests private void AssertKnows(CodexDebugResponse a, CodexDebugResponse b) { - Log.Debug($"Looking for {b.id} in engine-peers [{string.Join(",", a.enginePeers.Select(p => p.peerId))}]"); - Log.Debug($"Looking for {b.id} in switch-peers [{string.Join(",", a.switchPeers.Select(p => p.peerId))}]"); + var enginePeers = string.Join(",", a.enginePeers.Select(p => p.peerId)); + var switchPeers = string.Join(",", a.switchPeers.Select(p => p.peerId)); - Assert.That(a.enginePeers.Any(p => p.peerId == b.id), "Expected peerId not found in engine-peers"); - Assert.That(a.switchPeers.Any(p => p.peerId == b.id), "Expected peerId not found in switch-peers"); + Log.Debug($"Looking for {b.id} in engine-peers [{enginePeers}]"); + Log.Debug($"Looking for {b.id} in switch-peers [{switchPeers}]"); + + Assert.That(a.enginePeers.Any(p => p.peerId == b.id), $"Expected peerId '{b.id}' not found in engine-peers [{enginePeers}]"); + Assert.That(a.switchPeers.Any(p => p.peerId == b.id), $"Expected peerId '{b.id}' not found in switch-peers [{switchPeers}]"); } } }