Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cpworker/tests/integration/idle_capture_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" } } ]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" } } ]
}
]
Expand Down
2 changes: 1 addition & 1 deletion cpworker/tests/integration/testdata/reload/rtc_dest_a.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" } } ]
}
]
Expand Down
2 changes: 1 addition & 1 deletion cpworker/tests/integration/testdata/reload/rtc_dest_b.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" } } ]
}
]
Expand Down
Loading