From 15c26593b6df16674edaed5b2afaa909def16329 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 22 Apr 2024 14:26:03 +0200 Subject: [PATCH] testing: fix fund amt --- internal/test/e2e/cluster.go | 8 ++++---- internal/test/e2e/pruning_test.go | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/internal/test/e2e/cluster.go b/internal/test/e2e/cluster.go index 656736c2e..7d79a0581 100644 --- a/internal/test/e2e/cluster.go +++ b/internal/test/e2e/cluster.go @@ -686,16 +686,16 @@ func (c *TestCluster) AddHost(h *Host) { // Add the host c.hosts = append(c.hosts, h) - // Fund host from bus. - fundAmt := types.Siacoins(100e3) + // Fund host with one blockreward + fundAmt := types.Siacoins(25e3) var scos []types.SiacoinOutput for i := 0; i < 10; i++ { scos = append(scos, types.SiacoinOutput{ - Value: fundAmt, + Value: fundAmt.Div64(10), Address: h.WalletAddress(), }) } - c.tt.OK(c.Bus.SendSiacoins(context.Background(), scos, false)) + c.tt.OK(c.Bus.SendSiacoins(context.Background(), scos, true)) // Mine transaction. c.MineBlocks(1) diff --git a/internal/test/e2e/pruning_test.go b/internal/test/e2e/pruning_test.go index d2455b79f..36ef0b193 100644 --- a/internal/test/e2e/pruning_test.go +++ b/internal/test/e2e/pruning_test.go @@ -12,7 +12,6 @@ import ( "go.sia.tech/core/types" "go.sia.tech/renterd/api" "go.sia.tech/renterd/internal/test" - "go.uber.org/zap/zapcore" ) func TestHostPruning(t *testing.T) { @@ -21,9 +20,7 @@ func TestHostPruning(t *testing.T) { } // create a new test cluster - opts := clusterOptsDefault - opts.logger = newTestLoggerCustom(zapcore.DebugLevel) - cluster := newTestCluster(t, opts) + cluster := newTestCluster(t, clusterOptsDefault) defer cluster.Shutdown() // convenience variables