Skip to content

Commit

Permalink
beacon/goclient: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Dec 27, 2024
1 parent 5d64303 commit f95e7a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions beacon/goclient/goclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import (
v1 "github.com/attestantio/go-eth2-client/api/v1"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/ssvlabs/ssv-spec/types"
"github.com/stretchr/testify/require"
"go.uber.org/zap"

operatordatastore "github.com/ssvlabs/ssv/operator/datastore"
"github.com/ssvlabs/ssv/operator/slotticker"
"github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon"
registrystorage "github.com/ssvlabs/ssv/registry/storage"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)

func TestHealthy(t *testing.T) {
Expand Down Expand Up @@ -87,7 +88,7 @@ func TestTimeouts(t *testing.T) {
return nil
})
_, err := mockClient(ctx, undialableServer.URL, commonTimeout, longTimeout)
require.ErrorContains(t, err, "client is not active")
require.ErrorContains(t, err, "context deadline exceeded")
}

// Too slow to respond to the Validators request.
Expand Down

0 comments on commit f95e7a7

Please sign in to comment.