Updates to latest image

This commit is contained in:
benbierens 2023-04-26 15:31:01 +02:00
parent 1c9e59a6ea
commit 2ba5a1491a
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 9 additions and 6 deletions

View File

@ -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;

View File

@ -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}]");
}
}
}