Skip to content

Commit

Permalink
disable reads inside loadgen
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Nov 13, 2023
1 parent 33477da commit 1751ba4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions integration-tests/load/automationv2_1/gun.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package automationv2_1

import (
"context"
"github.com/rs/zerolog"
"github.com/smartcontractkit/chainlink/integration-tests/contracts"
"github.com/smartcontractkit/wasp"
Expand All @@ -27,12 +26,12 @@ func NewLogTriggerUser(

func (m *LogTriggerGun) Call(l *wasp.Generator) *wasp.CallResult {

Check failure on line 27 in integration-tests/load/automationv2_1/gun.go

View workflow job for this annotation

GitHub Actions / Build and Lint integration-tests

unused-parameter: parameter 'l' seems to be unused, consider removing or renaming it as _ (revive)
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}
}
Expand Down

0 comments on commit 1751ba4

Please sign in to comment.