Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Feb 19, 2024
1 parent fcb5b30 commit 00c17bd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
6 changes: 3 additions & 3 deletions integration-tests/reorg/automation_reorg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ import (
"github.com/smartcontractkit/chainlink-testing-framework/logging"
"github.com/smartcontractkit/chainlink-testing-framework/networks"
"github.com/smartcontractkit/chainlink-testing-framework/utils/testcontext"

"github.com/smartcontractkit/chainlink/integration-tests/actions"
"github.com/smartcontractkit/chainlink/integration-tests/client"
"github.com/smartcontractkit/chainlink/integration-tests/contracts"
"github.com/smartcontractkit/chainlink/integration-tests/contracts/ethereum"

tc "github.com/smartcontractkit/chainlink/integration-tests/testconfig"
)

Expand Down Expand Up @@ -136,7 +134,9 @@ func TestAutomationReorg(t *testing.T) {
"registry_2_2_logtrigger": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
config, err := tc.GetConfig("Reorg", tc.Automation)
Expand Down
36 changes: 27 additions & 9 deletions integration-tests/smoke/automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ func SetupAutomationBasic(t *testing.T, nodeUpgrade bool, automationTestConfig t
"registry_2_2_with_logtrigger_and_mercury_v02": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
cfg := tc.MustCopy(automationTestConfig)
t.Parallel()
Expand Down Expand Up @@ -239,7 +241,9 @@ func TestSetUpkeepTriggerConfig(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
config, err := tc.GetConfig("Smoke", tc.Automation)
Expand Down Expand Up @@ -420,7 +424,9 @@ func TestAutomationAddFunds(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
config, err := tc.GetConfig("Smoke", tc.Automation)
Expand Down Expand Up @@ -585,7 +591,9 @@ func TestAutomationRegisterUpkeep(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)
Expand Down Expand Up @@ -672,7 +680,9 @@ func TestAutomationPauseRegistry(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
config, err := tc.GetConfig("Smoke", tc.Automation)
Expand Down Expand Up @@ -744,7 +754,9 @@ func TestAutomationKeeperNodesDown(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)
Expand Down Expand Up @@ -847,7 +859,9 @@ func TestAutomationPerformSimulation(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
config, err := tc.GetConfig("Smoke", tc.Automation)
Expand Down Expand Up @@ -913,7 +927,9 @@ func TestAutomationCheckPerformGasLimit(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)
Expand Down Expand Up @@ -1030,7 +1046,9 @@ func TestUpdateCheckData(t *testing.T) {
"registry_2_2": ethereum.RegistryVersion_2_2,
}

for name, registryVersion := range registryVersions {
for n, rv := range registryVersions {
name := n
registryVersion := rv
t.Run(name, func(t *testing.T) {
t.Parallel()
l := logging.GetTestLogger(t)
Expand Down

0 comments on commit 00c17bd

Please sign in to comment.