2
0
mirror of synced 2025-01-11 17:14:25 +00:00

Updates to new Codex image. Fixes tests

This commit is contained in:
benbierens 2024-06-21 11:29:05 +02:00
parent 5afab577a7
commit 8033da1176
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
4 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ namespace CodexPlugin
{ {
public class CodexContainerRecipe : ContainerRecipeFactory public class CodexContainerRecipe : ContainerRecipeFactory
{ {
private const string DefaultDockerImage = "codexstorage/nim-codex:sha-b89493e-dist-tests"; private const string DefaultDockerImage = "codexstorage/nim-codex:sha-132c4db-dist-tests";
public const string ApiPortTag = "codex_api_port"; public const string ApiPortTag = "codex_api_port";
public const string ListenPortTag = "codex_listen_port"; public const string ListenPortTag = "codex_listen_port";

View File

@ -33,10 +33,9 @@ namespace CodexTests.BasicTests
.AsStorageNode() .AsStorageNode()
.AsValidator())); .AsValidator()));
var expectedHostBalance = (numberOfHosts * hostInitialBalance.TstWei).TstWei();
foreach (var host in hosts) foreach (var host in hosts)
{ {
AssertBalance(contracts, host, Is.EqualTo(expectedHostBalance)); AssertBalance(contracts, host, Is.EqualTo(hostInitialBalance));
var availability = new StorageAvailability( var availability = new StorageAvailability(
totalSpace: 10.GB(), totalSpace: 10.GB(),

View File

@ -49,6 +49,8 @@ namespace CodexTests.PeerDiscoveryTests
private void AssertAllNodesConnected(IEnumerable<ICodexNode> nodes) private void AssertAllNodesConnected(IEnumerable<ICodexNode> nodes)
{ {
nodes = nodes.Concat(new[] { BootstrapNode }).ToArray()!;
CreatePeerConnectionTestHelpers().AssertFullyConnected(nodes); CreatePeerConnectionTestHelpers().AssertFullyConnected(nodes);
CheckRoutingTable(nodes); CheckRoutingTable(nodes);
} }

View File

@ -28,6 +28,7 @@ namespace CodexTests.UtilityTests
[Test] [Test]
[DontDownloadLogs] [DontDownloadLogs]
[Ignore("Used to debug testnet bots.")]
public void BotRewardTest() public void BotRewardTest()
{ {
var geth = Ci.StartGethNode(s => s.IsMiner().WithName("disttest-geth")); var geth = Ci.StartGethNode(s => s.IsMiner().WithName("disttest-geth"));