diff --git a/cpworker/tests/integration/idle_capture_test.go b/cpworker/tests/integration/idle_capture_test.go index fe9d92a7..c131264f 100644 --- a/cpworker/tests/integration/idle_capture_test.go +++ b/cpworker/tests/integration/idle_capture_test.go @@ -62,6 +62,9 @@ func writeIdleCaptureConfig(t *testing.T, outputDir string, pipeline bool, timeo "snaplen": 2048, "bpf": fmt.Sprintf("udp and port %d", s.port), "timeout_ms": timeoutMs, + // The default 256 MB ring can take seconds to allocate on a host + // short of free memory, longer than the tests wait for startup. + "buffer_size_mb": 8, // Test traffic and a zmq output both use 127.0.0.1; the default // output-host exclusion would filter all of it out of the capture. "not_filter_output_hosts": true, diff --git a/cpworker/tests/integration/testdata/reload/pipeline_dest_a.json b/cpworker/tests/integration/testdata/reload/pipeline_dest_a.json index c83f9f66..1936778b 100644 --- a/cpworker/tests/integration/testdata/reload/pipeline_dest_a.json +++ b/cpworker/tests/integration/testdata/reload/pipeline_dest_a.json @@ -4,7 +4,7 @@ "tasks": [ { "fingerprint": "dst-a", - "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10 } }, + "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10, "buffer_size_mb": 8 } }, "outputs": [ { "type": "file", "file": { "name": "testdata/output/reload/switch_pipeline/a.pcap" } } ] } ] diff --git a/cpworker/tests/integration/testdata/reload/pipeline_dest_b.json b/cpworker/tests/integration/testdata/reload/pipeline_dest_b.json index 33b5ee05..5d982f26 100644 --- a/cpworker/tests/integration/testdata/reload/pipeline_dest_b.json +++ b/cpworker/tests/integration/testdata/reload/pipeline_dest_b.json @@ -4,7 +4,7 @@ "tasks": [ { "fingerprint": "dst-b", - "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10 } }, + "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10, "buffer_size_mb": 8 } }, "outputs": [ { "type": "file", "file": { "name": "testdata/output/reload/switch_pipeline/b.pcap" } } ] } ] diff --git a/cpworker/tests/integration/testdata/reload/rtc_dest_a.json b/cpworker/tests/integration/testdata/reload/rtc_dest_a.json index 1abca73e..377c94e3 100644 --- a/cpworker/tests/integration/testdata/reload/rtc_dest_a.json +++ b/cpworker/tests/integration/testdata/reload/rtc_dest_a.json @@ -2,7 +2,7 @@ "tasks": [ { "fingerprint": "dst-a", - "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10 } }, + "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10, "buffer_size_mb": 8 } }, "outputs": [ { "type": "file", "file": { "name": "testdata/output/reload/switch_rtc/a.pcap" } } ] } ] diff --git a/cpworker/tests/integration/testdata/reload/rtc_dest_b.json b/cpworker/tests/integration/testdata/reload/rtc_dest_b.json index ccc066ba..c7c17301 100644 --- a/cpworker/tests/integration/testdata/reload/rtc_dest_b.json +++ b/cpworker/tests/integration/testdata/reload/rtc_dest_b.json @@ -2,7 +2,7 @@ "tasks": [ { "fingerprint": "dst-b", - "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10 } }, + "capturer": { "type": "libpcap", "libpcap": { "interface": "lo", "snaplen": 2048, "bpf": "udp and port 54321", "timeout_ms": 10, "buffer_size_mb": 8 } }, "outputs": [ { "type": "file", "file": { "name": "testdata/output/reload/switch_rtc/b.pcap" } } ] } ]