mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
tests: disable netlink sockets tests by default
It causes random failures on restricted environments. Use NETLINK_TESTS=1 to launch them.
This commit is contained in:
parent
475ae98702
commit
da4d834c15
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ func setupConnection(proto string, connChan chan *Connection) {
|
|||
// We also need it if for any reason auditd or ebpf doesn't return the PID of the application.
|
||||
// TODO: test all the cases described in the GetSocketInfo() description.
|
||||
func TestNetlinkTCPQueries(t *testing.T) {
|
||||
// netlink tests disabled by default, they cause random failures on restricted
|
||||
// environments.
|
||||
if os.Getenv("NETLINK_TESTS") == "" {
|
||||
t.Skip("Skipping netlink tests. Use NETLINK_TESTS=1 to launch these tests.")
|
||||
}
|
||||
|
||||
connChan := make(chan *Connection)
|
||||
go setupConnection("tcp", connChan)
|
||||
conn := <-connChan
|
||||
|
|
Loading…
Add table
Reference in a new issue