diff --git a/go.mod b/go.mod index c97e5f943..64a149d84 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/montanaflynn/stats v0.7.1 gitlab.com/NebulousLabs/encoding v0.0.0-20200604091946-456c3dc907fe go.sia.tech/core v0.2.2 - go.sia.tech/coreutils v0.0.4-0.20240417103649-a364bd69eb31 + go.sia.tech/coreutils v0.0.4-0.20240417205447-a3dce82e35e3 go.sia.tech/gofakes3 v0.0.1 go.sia.tech/hostd v1.0.4 go.sia.tech/jape v0.11.2-0.20240124024603-93559895d640 diff --git a/go.sum b/go.sum index a1533ed4b..a155adc19 100644 --- a/go.sum +++ b/go.sum @@ -255,6 +255,8 @@ go.sia.tech/coreutils v0.0.4-0.20240416112608-482e7c4c2b0d h1:1fNOVCrGE8I53ZUs0s go.sia.tech/coreutils v0.0.4-0.20240416112608-482e7c4c2b0d/go.mod h1:6e0bDPG1qQa6jrkQhgY925lGHmTNbtq8nQwAmfpWhmo= go.sia.tech/coreutils v0.0.4-0.20240417103649-a364bd69eb31 h1:lZ/KMd2+8XkYWuzZGrQBzPqOC6vQhl6/leplnL8+o8o= go.sia.tech/coreutils v0.0.4-0.20240417103649-a364bd69eb31/go.mod h1:6e0bDPG1qQa6jrkQhgY925lGHmTNbtq8nQwAmfpWhmo= +go.sia.tech/coreutils v0.0.4-0.20240417205447-a3dce82e35e3 h1:GfPdg+kQqqUpMUp6nLocJ8lgBtuOJnKMfX64ax5jOJk= +go.sia.tech/coreutils v0.0.4-0.20240417205447-a3dce82e35e3/go.mod h1:6e0bDPG1qQa6jrkQhgY925lGHmTNbtq8nQwAmfpWhmo= go.sia.tech/gofakes3 v0.0.1 h1:8vtYH/B17NJ4GXLWiONfhwBrrmtJtYiofnO3PfjU298= go.sia.tech/gofakes3 v0.0.1/go.mod h1:PlsiVCn6+wssrR7bsOIlZm0DahsVrDydrlbjY4F14sg= go.sia.tech/hostd v1.0.4 h1:rFzuNJ7sSFQfdrTHKSNYyMX+wlHyei/vZcVbXmrUl6I= diff --git a/internal/test/e2e/cluster.go b/internal/test/e2e/cluster.go index f98644a64..d5e96128b 100644 --- a/internal/test/e2e/cluster.go +++ b/internal/test/e2e/cluster.go @@ -18,7 +18,7 @@ import ( "gitlab.com/NebulousLabs/encoding" "go.sia.tech/core/consensus" "go.sia.tech/core/types" - "go.sia.tech/coreutils/testutil" + "go.sia.tech/coreutils" "go.sia.tech/jape" "go.sia.tech/renterd/api" "go.sia.tech/renterd/autopilot" @@ -868,8 +868,9 @@ func (c *TestCluster) waitForHostContracts(hosts map[types.PublicKey]struct{}) { func (c *TestCluster) mineBlocks(addr types.Address, n uint64) error { for i := uint64(0); i < n; i++ { - block := testutil.MineBlock(c.cm, addr) - if err := c.Bus.AcceptBlock(context.Background(), block); err != nil { + if block, found := coreutils.MineBlock(c.cm, addr, 5*time.Second); !found { + c.tt.Fatal("failed to mine block") + } else if err := c.Bus.AcceptBlock(context.Background(), block); err != nil { return err } }