Skip to content

Commit

Permalink
go.mod: upgrade coreutils dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Apr 18, 2024
1 parent 733bc31 commit 310fbda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
7 changes: 4 additions & 3 deletions internal/test/e2e/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 310fbda

Please sign in to comment.