From 735b04eff721a28e791714c0da4c8ac5726bfbcf Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 4 Jan 2024 02:37:26 +0100 Subject: Fix tests --- plugins/tests/test_check_swap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/tests/test_check_swap.c') diff --git a/plugins/tests/test_check_swap.c b/plugins/tests/test_check_swap.c index 86ab188f..319cadbf 100644 --- a/plugins/tests/test_check_swap.c +++ b/plugins/tests/test_check_swap.c @@ -10,7 +10,6 @@ void print_help(swap_config config) { const char *progname = "test_check_swap"; int main() { - swap_config config = swap_config_init(); swap_result test_data = getSwapFromProcMeminfo(config, "./var/proc_meminfo"); @@ -19,6 +18,6 @@ int main() { ok(test_data.errorcode == 0, "Test whether we manage to retrieve swap data"); ok(test_data.metrics.total == 34233905152, "Is the total Swap correct"); - ok(test_data.metrics.free == 34231021568, "Is the free Swap correct"); + ok(test_data.metrics.free == 34233905152, "Is the free Swap correct"); ok(test_data.metrics.used == 0, "Is the used Swap correct"); } -- cgit v1.2.3-74-g34f1