Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
remove change to try and resolve flaky eth smoke tests
  • Loading branch information
ettec committed Dec 12, 2024
1 parent 02acd30 commit 16b1e57
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 692 deletions.
6 changes: 0 additions & 6 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,6 @@ packages:
github.com/smartcontractkit/chainlink/v2/core/services/workflows/syncer:
interfaces:
ORM:
ContractReader:
config:
mockname: "Mock{{ .InterfaceName }}"
filename: contract_reader_mock.go
inpackage: true
dir: "{{ .InterfaceDir }}"
Handler:
config:
mockname: "Mock{{ .InterfaceName }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ func Test_EventHandlerStateSync(t *testing.T) {
updateAllowedDONs(t, backendTH, wfRegistryC, []uint32{donID}, true)
updateAuthorizedAddress(t, backendTH, wfRegistryC, []common.Address{backendTH.ContractsOwner.From}, true)

// The number of workflows should be greater than the workflow registry contracts pagination limit to ensure
// that the syncer will query the contract multiple times to get the full list of workflows
// Create some initial static state
numberWorkflows := 20
for i := 0; i < numberWorkflows; i++ {
var workflowID [32]byte
Expand Down Expand Up @@ -164,11 +163,9 @@ func Test_EventHandlerStateSync(t *testing.T) {

testEventHandler.ClearEvents()

// Create events for a number of workflows and confirm that the event handler processes them

// Create different event types for a number of workflows and confirm that the event handler processes them in order
numberOfEventCycles := 50
for i := 0; i < numberOfEventCycles; i++ {

var workflowID [32]byte
_, err = rand.Read((workflowID)[:])
require.NoError(t, err)
Expand Down Expand Up @@ -205,7 +202,6 @@ func Test_EventHandlerStateSync(t *testing.T) {

if numEvents == expectedNumEvents {
// verify the events are the expected types in the expected order
// Note the below test does not work with the unrefactored workflow registry, event order is essentially random
for idx, event := range events {
switch idx % 5 {
case 0:
Expand Down Expand Up @@ -566,14 +562,6 @@ func Test_RegistrySyncer_WorkflowRegistered_InitiallyActivated(t *testing.T) {
// generate a log event
registerWorkflow(t, backendTH, wfRegistryC, giveWorkflow)

/*
string(ForceUpdateSecretsEvent),
string(WorkflowActivatedEvent),
string(WorkflowDeletedEvent),
string(WorkflowPausedEvent),
string(WorkflowRegisteredEvent),
string(WorkflowUpdatedEvent), */

// Require the secrets contents to eventually be updated
require.Eventually(t, func() bool {
_, err := er.Get("test-wf")
Expand Down
302 changes: 0 additions & 302 deletions core/services/workflows/syncer/contract_reader_mock.go

This file was deleted.

Loading

0 comments on commit 16b1e57

Please sign in to comment.