From 1751ba4e3c8a654784062f07b3a577441dbda652 Mon Sep 17 00:00:00 2001 From: anirudhwarrier <12178754+anirudhwarrier@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:07:42 +0400 Subject: [PATCH] disable reads inside loadgen --- integration-tests/load/automationv2_1/gun.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/integration-tests/load/automationv2_1/gun.go b/integration-tests/load/automationv2_1/gun.go index 795bfd65b39..c95d9ec43e8 100644 --- a/integration-tests/load/automationv2_1/gun.go +++ b/integration-tests/load/automationv2_1/gun.go @@ -1,7 +1,6 @@ package automationv2_1 import ( - "context" "github.com/rs/zerolog" "github.com/smartcontractkit/chainlink/integration-tests/contracts" "github.com/smartcontractkit/wasp" @@ -27,12 +26,12 @@ func NewLogTriggerUser( func (m *LogTriggerGun) Call(l *wasp.Generator) *wasp.CallResult { m.logger.Debug().Str("Trigger address", m.triggerContract.Address().String()).Msg("Triggering upkeep") - initialCount, err := m.upkeepContract.Counter(context.Background()) - m.logger.Debug().Int64("Initial count", initialCount.Int64()).Msg("Initial count") - if err != nil { - return &wasp.CallResult{Error: err.Error(), Failed: true} - } - _, err = m.triggerContract.EmitLogInt(1) + //initialCount, err := m.upkeepContract.Counter(context.Background()) + //m.logger.Debug().Int64("Initial count", initialCount.Int64()).Msg("Initial count") + //if err != nil { + // return &wasp.CallResult{Error: err.Error(), Failed: true} + //} + _, err := m.triggerContract.EmitLogInt(1) if err != nil { return &wasp.CallResult{Error: err.Error(), Failed: true} }