tests: make check_snmp test more reliable
commit22f47fc0c51266bd25491da30fd165a845a1391b
authorSven Nierlein <sven@nierlein.de>
Mon, 21 Jan 2019 16:41:02 +0000 (21 17:41 +0100)
committerSven Nierlein <sven@nierlein.de>
Mon, 21 Jan 2019 16:41:02 +0000 (21 17:41 +0100)
tree4f33e144fdb8e521665a9bce7c4b75cea98d8c97
parenteb8ca01be9ca63b13f77a5814b97cb5810220b65
tests: make check_snmp test more reliable

The check_snmp rate tests depend on the exact amount of time spend between the
plugin runs and will fail on busy machines, ex. the ci servers. Using faketime
mitigates this issue and also removes all the sleeps.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
plugins/tests/check_snmp.t