From f95e7a77ac6612f5404ecd8d7df97ce7fc1e2b9b Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Thu, 26 Dec 2024 23:16:20 -0300 Subject: [PATCH] beacon/goclient: fix unit tests --- beacon/goclient/goclient_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beacon/goclient/goclient_test.go b/beacon/goclient/goclient_test.go index b9c0e4b51a..7f608d9b1e 100644 --- a/beacon/goclient/goclient_test.go +++ b/beacon/goclient/goclient_test.go @@ -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) { @@ -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.