Skip to content

Commit

Permalink
add env vars for relay (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov authored Feb 4, 2022
1 parent 827c07e commit 31abba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package smoke

import (
"time"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/rs/zerolog/log"
"github.com/smartcontractkit/chainlink-solana/tests/e2e/common"
"github.com/smartcontractkit/integrations-framework/actions"
"time"
)

var _ = Describe("Solana OCRv2", func() {
Expand All @@ -21,9 +22,9 @@ var _ = Describe("Solana OCRv2", func() {
It("performs OCR round", func() {
Eventually(func(g Gomega) {
a, ts, _, err := state.Store.GetLatestRoundData()
log.Debug().Uint64("Answer", a).Time("Time", time.Unix(int64(ts), 0)).Msg("Round data")
g.Expect(err).ShouldNot(HaveOccurred())
g.Expect(a).Should(Equal(uint64(10)))
log.Debug().Uint64("Answer", a).Time("Time", time.Unix(int64(ts), 0)).Msg("Round data")
}, common.NewRoundCheckTimeout, common.NewRoundCheckPollInterval).Should(Succeed())
})
})
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/solclient/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func NewChainlinkSolOCRv2(nodes int, stateful bool) *environment.Config {
},
"db": db,
"env": map[string]interface{}{
"EVM_ENABLED": "false",
"EVM_RPC_ENABLED": "false",
"SOLANA_ENABLED": "true",
"eth_url": "ws://sol:8900",
"eth_disabled": "true",
"CHAINLINK_DEV": "false",
Expand Down

0 comments on commit 31abba5

Please sign in to comment.