Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Jun 18, 2024
1 parent c01deaf commit 3582847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestVersionedBytesFunctions(t *testing.T) {
func TestChainReaderInterfaceTests(t *testing.T) {
t.Parallel()

chainreadertest.LoopEncodingTestMatrix(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
chainreadertest.TestAllEncodings(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
return func(t *testing.T) {
t.Parallel()

Expand All @@ -85,7 +85,7 @@ func TestChainReaderInterfaceTests(t *testing.T) {
func TestBind(t *testing.T) {
t.Parallel()

chainreadertest.LoopEncodingTestMatrix(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
chainreadertest.TestAllEncodings(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
return func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -113,7 +113,7 @@ func TestBind(t *testing.T) {
func TestGetLatestValue(t *testing.T) {
t.Parallel()

chainreadertest.LoopEncodingTestMatrix(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
chainreadertest.TestAllEncodings(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
return func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -162,7 +162,7 @@ func TestGetLatestValue(t *testing.T) {
func TestQueryKey(t *testing.T) {
t.Parallel()

chainreadertest.LoopEncodingTestMatrix(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
chainreadertest.TestAllEncodings(t, func(version chainreader.EncodingVersion) func(t *testing.T) {
return func(t *testing.T) {
t.Parallel()

Expand All @@ -177,7 +177,6 @@ func TestQueryKey(t *testing.T) {
chainReader := errTester.GetChainReader(t)

t.Run("nil reader should return unimplemented", func(t *testing.T) {
t.Parallel()
ctx := tests.Context(t)

nilTester := chainreadertest.WrapChainReaderTesterForLoop(&fakeChainReaderInterfaceTester{impl: nil})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
. "github.com/smartcontractkit/chainlink-common/pkg/types/interfacetests" //nolint common practice to import test mods with .
)

func LoopEncodingTestMatrix(t *testing.T, test func(chainreader.EncodingVersion) func(t *testing.T)) {
func TestAllEncodings(t *testing.T, test func(chainreader.EncodingVersion) func(t *testing.T)) {
t.Helper()

encodings := []struct {
Expand Down

0 comments on commit 3582847

Please sign in to comment.