Skip to content

Commit

Permalink
chore: max delay and timer
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Nov 8, 2024
1 parent c2d58a3 commit 713c655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions testbed/tests/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,16 @@ func TestMemoryLimiterHit(t *testing.T) {
otlpreceiver.WithTimeout(`
timeout: 0s
`)
processors := map[string]string{
"memory_limiter": `
processors := []ProcessorNameAndConfigBody{
{
Name: "memory_limiter",
Body: `
memory_limiter:
check_interval: 1s
limit_mib: 300
spike_limit_mib: 150
`,
},
}
ScenarioMemoryLimiterHit(
t,
Expand All @@ -402,6 +405,7 @@ func TestMemoryLimiterHit(t *testing.T) {
DataItemsPerSecond: 100000,
ItemsPerBatch: 1000,
Parallel: 1,
MaxDelay: 20 * time.Second,
},
performanceResultsSummary, 100, processors)
}
2 changes: 1 addition & 1 deletion testbed/tests/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func ScenarioMemoryLimiterHit(
loadOptions testbed.LoadOptions,
resultsSummary testbed.TestResultsSummary,
sleepTime int,
processors map[string]string,
processors []ProcessorNameAndConfigBody,
) {
resultDir, err := filepath.Abs(path.Join("results", t.Name()))
require.NoError(t, err)
Expand Down

0 comments on commit 713c655

Please sign in to comment.