Skip to content

Commit 10d6feb

Browse files
committed
Use smaller max_fan_speed in tests
This should allow iMacs to complete tests successfully. Fixes #212. Fixes #215.
1 parent bc71232 commit 10d6feb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mbpfan.conf.test1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[general]
2-
min_fan1_speed = 6200 # default is 2000
3-
max_fan1_speed = 6200 # default is 6200
2+
min_fan1_speed = 2000 # default is 2000
3+
max_fan1_speed = 2600 # default is 2600
44
low_temp = 63 # try ranges 55-63, default is 63
55
high_temp = 66 # try ranges 58-66, default is 66
66
max_temp = 86 # do not set it > 90, default is 86

src/minunit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ static const char *test_settings()
159159
fan->next = NULL;
160160

161161
retrieve_settings("./mbpfan.conf.test1", fan);
162-
mu_assert("max_fan_speed value is not 6200", fan->fan_max_speed == 6200);
162+
// choosing the maximum for iMac mid 2011
163+
mu_assert("max_fan_speed value is not 2600", fan->fan_max_speed == 2600);
163164
mu_assert("polling_interval is not 2", polling_interval == 2);
164165

165166
fan->fan_min_speed = -1;

0 commit comments

Comments
 (0)