Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed May 20, 2024
1 parent a2cb4d3 commit 43c3c57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions integration-tests/gauntlet/gauntlet_solana.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (sg *SolanaGauntlet) ProposeOnChainConfig(proposalID string, onChainConfig

_, err = sg.G.ExecCommand([]string{
"ocr2:propose_config",
fmt.Sprintf("--proposalID=%s", proposalID),
fmt.Sprintf("--proposalId=%s", proposalID),
fmt.Sprintf("--input=%v", string(config)),
ocrFeedAddress,
},
Expand All @@ -311,7 +311,7 @@ func (sg *SolanaGauntlet) ProposeOffChainConfig(proposalID string, offChainConfi

_, err = sg.G.ExecCommand([]string{
"ocr2:propose_offchain_config",
fmt.Sprintf("--proposalID=%s", proposalID),
fmt.Sprintf("--proposalId=%s", proposalID),
fmt.Sprintf("--input=%v", string(config)),
ocrFeedAddress,
},
Expand All @@ -337,7 +337,7 @@ func (sg *SolanaGauntlet) ProposePayees(proposalID string, payeesConfig common.P

_, err = sg.G.ExecCommand([]string{
"ocr2:propose_payees",
fmt.Sprintf("--proposalID=%s", proposalID),
fmt.Sprintf("--proposalId=%s", proposalID),
fmt.Sprintf("--input=%v", string(config)),
ocrFeedAddress,
},
Expand All @@ -358,7 +358,7 @@ func (sg *SolanaGauntlet) ProposePayees(proposalID string, payeesConfig common.P
func (sg *SolanaGauntlet) FinalizeProposal(proposalID string) (string, error) {
_, err := sg.G.ExecCommand([]string{
"ocr2:finalize_proposal",
fmt.Sprintf("--proposalID=%s", proposalID),
fmt.Sprintf("--proposalId=%s", proposalID),
},
*sg.options,
)
Expand All @@ -382,7 +382,7 @@ func (sg *SolanaGauntlet) AcceptProposal(proposalID string, secret string, propo

_, err = sg.G.ExecCommand([]string{
"ocr2:accept_proposal",
fmt.Sprintf("--proposalID=%s", proposalID),
fmt.Sprintf("--proposalId=%s", proposalID),
fmt.Sprintf("--secret=%s", secret),
fmt.Sprintf("--input=%s", string(config)),
ocrFeedAddres,
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.21.7
replace github.com/smartcontractkit/chainlink-solana => ../

require (
github.com/ethereum/go-ethereum v1.13.8
github.com/gagliardetto/binary v0.7.7
github.com/gagliardetto/solana-go v1.8.4
github.com/google/uuid v1.6.0
Expand Down Expand Up @@ -136,6 +135,7 @@ require (
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
github.com/esote/minmaxheap v1.0.0 // indirect
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
github.com/ethereum/go-ethereum v1.13.8 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/solclient/ocr2.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ func (m *OCRv2) fetchProposalAccount() (*ocr_2.Proposal, error) {
m.Proposal.PublicKey(),
&proposal,
)
if err != nil {
return nil, err
}
// if err != nil {
// return nil, err
// }
// reimplement GetAccountDataInto with options
resp, err := m.Client.RPC.GetAccountInfoWithOpts(
context.Background(),
Expand Down
6 changes: 2 additions & 4 deletions pkg/solana/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,13 @@ func TestCache(t *testing.T) {
// state query
if bytes.Contains(body, []byte("11111111111111111111111111111111")) {
// Drop error, client may cancel ctx.
_, err = w.Write(testStateResponse())
require.NoError(t, err)
w.Write(testStateResponse()) //nolint:errcheck
return
}

// transmissions query
// Drop error, client may cancel ctx.
_, err = w.Write(testTransmissionsResponse(t, body, 0))
require.NoError(t, err)
w.Write(testTransmissionsResponse(t, body, 0)) //nolint:errcheck
}))

lggr := logger.Test(t)
Expand Down

0 comments on commit 43c3c57

Please sign in to comment.