summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnet/test/bpf_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/test/bpf_test.py b/net/test/bpf_test.py
index 0b65c32..4602515 100755
--- a/net/test/bpf_test.py
+++ b/net/test/bpf_test.py
@@ -628,7 +628,8 @@ class BpfCgroupTest(net_test.NetworkTest):
fd = BpfProgGetFdById(BpfProgQuery(self._cg_fd, BPF_CGROUP_INET_SOCK_CREATE, 0, 0))
assert fd is not None
- assert fd == self.prog_fd + 1
+ # equality while almost certain is not actually 100% guaranteed:
+ assert fd >= self.prog_fd + 1
os.close(fd)
fd = None