Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Jan 17, 2024
1 parent 25ca56c commit 050f4a1
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions integration-tests/ccip-tests/load/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,17 @@ func (l *LoadArgs) TriggerLoadByLane() {
}

loadRunner, err := wasp.NewGenerator(&wasp.Config{
T: l.TestCfg.Test,
GenName: fmt.Sprintf("lane %s-> %s", lane.SourceNetworkName, lane.DestNetworkName),
LoadType: wasp.RPS,
T: l.TestCfg.Test,
GenName: fmt.Sprintf("lane %s-> %s", lane.SourceNetworkName, lane.DestNetworkName),
Schedule: l.schedules,
LoadType: wasp.RPS,
RateLimitUnitDuration: l.TestCfg.TestGroupInput.TimeUnit.Duration(),
CallResultBufLen: 10, // we keep the last 10 call results for each generator, as the detailed report is generated at the end of the test
CallTimeout: (l.TestCfg.TestGroupInput.PhaseTimeout.Duration()) * 5,
Gun: ccipLoad,
Logger: ccipLoad.Lane.Logger,
SharedData: l.TestCfg.TestGroupInput.MsgType,
LokiConfig: wasp.NewEnvLokiConfig(),
Labels: map[string]string{
"test_group": "load",
"cluster": "sdlc",
Expand All @@ -114,20 +122,7 @@ func (l *LoadArgs) TriggerLoadByLane() {
"source_chain": lane.SourceNetworkName,
"dest_chain": lane.DestNetworkName,
},
LokiConfig: wasp.NewEnvLokiConfig(),
Schedule: l.schedules,
RateLimitUnitDuration: l.TestCfg.TestGroupInput.TimeUnit.Duration(),
CallResultBufLen: 10, // we keep the last 10 call results for each generator, as the detailed report is generated at the end of the test
StatsPollInterval: 0,
CallTimeout: (l.TestCfg.TestGroupInput.PhaseTimeout.Duration()) * 5,
SetupTimeout: 0,
TeardownTimeout: 0,
FailOnErr: true,
Gun: ccipLoad,
VU: nil,
Logger: ccipLoad.Lane.Logger,
SharedData: l.TestCfg.TestGroupInput.MsgType,
SamplerConfig: nil,
FailOnErr: true,
})
require.NoError(l.TestCfg.Test, err, "initiating loadgen for lane %s --> %s",
lane.SourceNetworkName, lane.DestNetworkName)
Expand Down

0 comments on commit 050f4a1

Please sign in to comment.