Skip to content

Commit 8840370

Browse files
committed
Disable scraper for repeated network test
1 parent f3b8b35 commit 8840370

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

integration-tests/integration_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func TestRepeatedNetworkFlow(t *testing.T) {
3737
repeatedNetworkFlowTestSuite := &suites.RepeatedNetworkFlowTestSuite{
3838
AfterglowPeriod: 10,
3939
ScrapeInterval: 4,
40+
TurnOffScrape: false,
4041
EnableAfterglow: true,
4142
NumMetaIter: 1,
4243
NumIter: 11,
@@ -54,6 +55,7 @@ func TestRepeatedNetworkFlowWithZeroAfterglowPeriod(t *testing.T) {
5455
repeatedNetworkFlowTestSuite := &suites.RepeatedNetworkFlowTestSuite{
5556
AfterglowPeriod: 0,
5657
ScrapeInterval: 2,
58+
TurnOffScrape: false,
5759
EnableAfterglow: true,
5860
NumMetaIter: 1,
5961
NumIter: 3,
@@ -69,7 +71,7 @@ func TestRepeatedNetworkFlowThreeCurlsNoAfterglow(t *testing.T) {
6971
// The afterglow period is set to 0 so afterglow is disabled
7072
repeatedNetworkFlowTestSuite := &suites.RepeatedNetworkFlowTestSuite{
7173
AfterglowPeriod: 0,
72-
ScrapeInterval: 4,
74+
TurnOffScrape: true,
7375
EnableAfterglow: false,
7476
NumMetaIter: 1,
7577
NumIter: 3,

integration-tests/suites/repeated_network_flow.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type RepeatedNetworkFlowTestSuite struct {
2424
EnableAfterglow bool
2525
AfterglowPeriod int
2626
ScrapeInterval int
27+
TurnOffScrape bool
2728
NumMetaIter int
2829
NumIter int
2930
SleepBetweenCurlTime int
@@ -44,6 +45,7 @@ func (s *RepeatedNetworkFlowTestSuite) SetupSuite() {
4445
// turnOffScrape will be true, but the scrapeInterval
4546
// also controls the reporting interval for network events
4647
"scrapeInterval": s.ScrapeInterval,
48+
"turnOffScrape": s.TurnOffScrape,
4749
},
4850
Env: map[string]string{
4951
"ROX_AFTERGLOW_PERIOD": strconv.Itoa(s.AfterglowPeriod),

0 commit comments

Comments
 (0)