From 021f42f011800efef9428a211876b7b1c2d0bd22 Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Fri, 5 Apr 2024 10:16:46 +0200 Subject: [PATCH] set privilege before starting consumer --- integration-tests/smoke/automation_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/integration-tests/smoke/automation_test.go b/integration-tests/smoke/automation_test.go index b8305eb38fe..5e3d18b5951 100644 --- a/integration-tests/smoke/automation_test.go +++ b/integration-tests/smoke/automation_test.go @@ -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{ @@ -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")