mbpfan-josie

Update unit tests for fan speed auto-detection

Follows on to 716d9d877a08e0bce0b9a5cf7222ff3a4829e66.
References #190.

1243d7df6c9e6e655460f811c18f336ad404d5b8
Andrew Gaul <andrew@gaul.org> · 2019-10-30T20:59 · browse files at this commit

parents: 28bc0a1

diff --git a/src/minunit.c b/src/minunit.c
index a9aedb9..5934ffb 100644
--- a/src/minunit.c
+++ b/src/minunit.c
@@ -231,7 +231,7 @@ static const char *test_settings_reload()
     // cannot tests min_fan_speed since it is not set and thus auto-detected
     mu_assert("polling_interval is not 1 before SIGHUP", polling_interval == 1);
     raise(SIGHUP);
-    mu_assert("min_fan_speed value is not 6200 after SIGHUP", fan->fan_min_speed == 6200);
+    // cannot tests min_fan_speed since it is not set and thus auto-detected
     mu_assert("polling_interval is not 2 after SIGHUP", polling_interval == 2);
     retrieve_settings("./mbpfan.conf", fan);
     free_fans(fan);