Code Review
/
barometer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "docker: add kafka container for barometer"
[barometer.git]
/
baro_tests
/
tests.py
diff --git
a/baro_tests/tests.py
b/baro_tests/tests.py
index
4cbd0e8
..
580ee4d
100644
(file)
--- a/
baro_tests/tests.py
+++ b/
baro_tests/tests.py
@@
-15,6
+15,7
@@
"""Function for testing collectd plug-ins with different oup plug-ins"""
import time
"""Function for testing collectd plug-ins with different oup plug-ins"""
import time
+import math
def test_snmp_sends_data(
def test_snmp_sends_data(
@@
-223,7
+224,7
@@
def test_csv_handles_plugin_data(
+ 'to interval...')
for metric in plugin_metrics:
logger.debug('{0} {1} {2} ... '.format(metric[0], metric[1], metric[2]))
+ 'to interval...')
for metric in plugin_metrics:
logger.debug('{0} {1} {2} ... '.format(metric[0], metric[1], metric[2]))
- if m
etric[3] - metric[2] !=
interval:
+ if m
ath.floor(metric[3] - metric[2]) >
interval:
logger.error(
'Time of last two entries differ by '
+ '{}, but interval is {}'.format(
logger.error(
'Time of last two entries differ by '
+ '{}, but interval is {}'.format(