Updates to new Codex image. Fixes tests
This commit is contained in:
parent
5afab577a7
commit
8033da1176
@ -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";
|
||||||
|
@ -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(),
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user