about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorHeikki Kallasjoki <fis@zem.fi>2018-12-23 00:06:59 +0000
committerHeikki Kallasjoki <fis+github@zem.fi>2018-12-23 21:50:27 +0000
commit6d65b7fb9242eb827d5d4036f0fa8816430eb364 (patch)
treecfc35c119a14ecb89d7d35980fe7191cc6b3230f /test
parent5c50e58b1af19e4cd54e272e143091b80e127d8c (diff)
downloadnano-exporter-6d65b7fb9242eb827d5d4036f0fa8816430eb364.tar.gz
nano-exporter-6d65b7fb9242eb827d5d4036f0fa8816430eb364.tar.xz
nano-exporter-6d65b7fb9242eb827d5d4036f0fa8816430eb364.zip
Move the collector loop into scrape server code.
This paves the way for supporting parallel scrapes (#19); the
implementation for that is going to need to track the state of the
current scrape.
Diffstat (limited to 'test')
-rw-r--r--test/cpu_test.c1
-rw-r--r--test/diskstats_test.c1
-rw-r--r--test/filesystem_test.c1
-rw-r--r--test/hwmon_test.c1
-rw-r--r--test/meminfo_test.c1
-rw-r--r--test/netdev_test.c1
-rw-r--r--test/stat_test.c1
-rw-r--r--test/textfile_test.c1
-rw-r--r--test/uname_test.c1
9 files changed, 0 insertions, 9 deletions
diff --git a/test/cpu_test.c b/test/cpu_test.c
index 4698236..7b9ed43 100644
--- a/test/cpu_test.c
+++ b/test/cpu_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector cpu_collector;
 void cpu_test_override_tick(void *ctx, long tick);
diff --git a/test/diskstats_test.c b/test/diskstats_test.c
index e1f1456..e7b53ec 100644
--- a/test/diskstats_test.c
+++ b/test/diskstats_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector diskstats_collector;
 
diff --git a/test/filesystem_test.c b/test/filesystem_test.c
index 15aaa88..f358984 100644
--- a/test/filesystem_test.c
+++ b/test/filesystem_test.c
@@ -20,7 +20,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector filesystem_collector;
 void filesystem_test_override_statvfs(void *ctx, int (*statvfs_func)(const char *path, struct statvfs *buf));
diff --git a/test/hwmon_test.c b/test/hwmon_test.c
index 0df510b..02ef490 100644
--- a/test/hwmon_test.c
+++ b/test/hwmon_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector hwmon_collector;
 
diff --git a/test/meminfo_test.c b/test/meminfo_test.c
index 91b4102..4f9ea19 100644
--- a/test/meminfo_test.c
+++ b/test/meminfo_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector meminfo_collector;
 
diff --git a/test/netdev_test.c b/test/netdev_test.c
index 5db1da6..3b5cf09 100644
--- a/test/netdev_test.c
+++ b/test/netdev_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector netdev_collector;
 
diff --git a/test/stat_test.c b/test/stat_test.c
index 4dbe3a7..b980267 100644
--- a/test/stat_test.c
+++ b/test/stat_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector stat_collector;
 
diff --git a/test/textfile_test.c b/test/textfile_test.c
index b2ee2ca..82aa44a 100644
--- a/test/textfile_test.c
+++ b/test/textfile_test.c
@@ -16,7 +16,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector textfile_collector;
 
diff --git a/test/uname_test.c b/test/uname_test.c
index 3a8390c..4bad7ac 100644
--- a/test/uname_test.c
+++ b/test/uname_test.c
@@ -19,7 +19,6 @@
 
 #include "harness.h"
 #include "mock_scrape.h"
-#include "../collector.h"
 
 extern const struct collector uname_collector;
 void uname_test_override_data(void *ctx, struct utsname *name);