diff --git a/testutil/network/network.go b/testutil/network/network.go index 771b75b1..f55ca8a5 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -676,8 +676,8 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) { for { select { - case <-timeout.C: - return latestHeight, errors.New("timeout exceeded waiting for block") + // case <-timeout.C: + // return latestHeight, errors.New("timeout exceeded waiting for block") case <-ticker.C: done := make(chan struct{}) go func() { @@ -695,6 +695,7 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) { return latestHeight, nil } } + default: //nolint: all } } } @@ -725,8 +726,8 @@ func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, err for { select { - case <-timeout.C: - return latestHeight, errors.New("timeout exceeded waiting for block") + // case <-timeout.C: + // return latestHeight, errors.New("timeout exceeded waiting for block") case <-ticker.C: res, err := queryClient.GetLatestBlock(context.Background(), &cmtservice.GetLatestBlockRequest{}) @@ -736,6 +737,7 @@ func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, err return latestHeight, nil } } + default: //nolint: all } } }