Skip to content

Commit

Permalink
Add chain_reader_test.go stub for relay tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Oct 23, 2023
1 parent d28b3c1 commit 8af20a7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions core/services/relay/evm/chain_reader_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package evm_test

import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

mocklogpoller "github.com/smartcontractkit/chainlink/v2/core/chains/evm/logpoller/mocks"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/logger"

"github.com/smartcontractkit/chainlink/v2/core/services/relay/evm"
)

func TestChainReaderStartClose(t *testing.T) {
lggr := logger.TestLogger(t)
lp := mocklogpoller.NewLogPoller(t)
chainReader, err := evm.NewChainReaderService(lggr, lp)
require.NoError(t, err)
require.NotNil(t, chainReader)
err = chainReader.Start(testutils.Context(t))
assert.NoError(t, err)
err = chainReader.Close()
assert.NoError(t, err)
}

0 comments on commit 8af20a7

Please sign in to comment.