Skip to content

Commit

Permalink
set privilege before starting consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Apr 5, 2024
1 parent 69101e5 commit 021f42f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integration-tests/smoke/automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@ func SetupAutomationBasic(t *testing.T, nodeUpgrade bool, automationTestConfig t
)

for i := 0; i < len(upkeepIDs); i++ {
if isLogTrigger || isMercuryV02 {
if err := consumers[i].Start(); err != nil {
l.Error().Msg("Error when starting consumer")
return
}
}

if isMercury {
// Set privilege config to enable mercury
privilegeConfigBytes, _ := json.Marshal(streams.UpkeepPrivilegeConfig{
Expand All @@ -157,6 +150,13 @@ func SetupAutomationBasic(t *testing.T, nodeUpgrade bool, automationTestConfig t
return
}
}

if isLogTrigger || isMercuryV02 {
if err := consumers[i].Start(); err != nil {
l.Error().Msg("Error when starting consumer")
return
}
}
}

l.Info().Msg("Waiting for all upkeeps to be performed")
Expand Down

0 comments on commit 021f42f

Please sign in to comment.