summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/unimpl/events.go
diff options
context:
space:
mode:
authorAyush Ranjan <ayushranjan@google.com>2021-08-17 23:35:10 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-17 23:37:29 -0700
commit216b740663bd897dad177b57953c59860105020d (patch)
treebf1ee782e370ad73a68c44f09d1d251bbcd34795 /pkg/sentry/unimpl/events.go
parentb495ae599aeff85511449ef17bd50d656d40bc28 (diff)
[op] Deflake SNMP Metric proc_net tests.
Earlier the tests were checking for equality of system-wide metrics before and after some network related operations. That is inherently racy for native tests because depending on the testing infrastructure, multiple tests might run parallely hence trampling over each other's metrics. Tests should only compare metrics that are increasing in nature. The comparison should not be a hard comparison, instead a less-than/greater-than relation test. I have changed the checks and also removed tests for tcpCurrEstab metric which has "SYNTAX Gauge" and hence can not be tested reliably. PiperOrigin-RevId: 391460081
Diffstat (limited to 'pkg/sentry/unimpl/events.go')
0 files changed, 0 insertions, 0 deletions