Skip to content

Commit

Permalink
Remove mock adapter from environment struct
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gopalswami committed Nov 19, 2024
1 parent 03115e8 commit 9227413
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions deployment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rpc"
chain_selectors "github.com/smartcontractkit/chain-selectors"
"github.com/smartcontractkit/chainlink-testing-framework/lib/docker/test_env"
types2 "github.com/smartcontractkit/libocr/offchainreporting2/types"
types3 "github.com/smartcontractkit/libocr/offchainreporting2plus/types"
"google.golang.org/grpc"
Expand Down Expand Up @@ -76,7 +75,6 @@ type Environment struct {
Chains map[uint64]Chain
NodeIDs []string
Offchain OffchainClient
MockAdapter *test_env.Killgrave
}

func NewEnvironment(
Expand Down
1 change: 0 additions & 1 deletion integration-tests/ccip-tests/testsetups/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func NewLocalDevEnvironment(
require.NoError(t, err)
require.NotNil(t, e)
e.ExistingAddresses = ab
e.MockAdapter = testEnv.MockAdapter

envNodes, err := deployment.NodeInfo(e.NodeIDs, e.Offchain)
require.NoError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/smoke/ccip_usdc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func TestUSDCTokenTransfer(t *testing.T) {
defer server.Close()
endpoint = server.URL
} else {
err := actions.SetMockServerWithUSDCAttestation(tenv.Env.MockAdapter, nil)
err := actions.SetMockServerWithUSDCAttestation(cluster.MockAdapter, nil)
require.NoError(t, err)
endpoint = tenv.Env.MockAdapter.InternalEndpoint
endpoint = cluster.MockAdapter.InternalEndpoint
}

e := tenv.Env
Expand Down

0 comments on commit 9227413

Please sign in to comment.