@@ -30,13 +30,14 @@ import (
3030func newTestScheduler (cfg * Config ) * MinerScheduler {
3131 if cfg == nil {
3232 cfg = & Config {
33- FanRHighThreshold : 80 ,
34- FanRLowThreshold : 50 ,
35- MinerPowerStandby : 0.1 ,
36- MinerPowerEco : 1.0 ,
37- MinerPowerStandard : 1.5 ,
38- MinerPowerSuper : 2.0 ,
39- MinersPowerLimit : 10.0 ,
33+ FanRHighThreshold : 80 ,
34+ FanRLowThreshold : 50 ,
35+ MinerPowerStandby : 0.1 ,
36+ MinerPowerEco : 1.0 ,
37+ MinerPowerStandard : 1.5 ,
38+ MinerPowerSuper : 2.0 ,
39+ MinersPowerLimit : 10.0 ,
40+ MinerWorkModeUpgradeChecks : 5 ,
4041 }
4142 }
4243 return NewMinerScheduler (cfg , log .New (os .Stdout , "TEST: " , log .LstdFlags ))
@@ -404,13 +405,14 @@ func TestControlMiner_DecreaseWhenNewPowerWouldStillExceedLimit(t *testing.T) {
404405func TestControlMiner_CustomThresholds (t * testing.T ) {
405406 // Test with custom FanR thresholds
406407 cfg := & Config {
407- FanRHighThreshold : 70 ,
408- FanRLowThreshold : 40 ,
409- MinerPowerStandby : 0.1 ,
410- MinerPowerEco : 1.0 ,
411- MinerPowerStandard : 1.5 ,
412- MinerPowerSuper : 2.0 ,
413- MinersPowerLimit : 10.0 ,
408+ FanRHighThreshold : 70 ,
409+ FanRLowThreshold : 40 ,
410+ MinerPowerStandby : 0.1 ,
411+ MinerPowerEco : 1.0 ,
412+ MinerPowerStandard : 1.5 ,
413+ MinerPowerSuper : 2.0 ,
414+ MinersPowerLimit : 10.0 ,
415+ MinerWorkModeUpgradeChecks : 5 ,
414416 }
415417 scheduler := newTestScheduler (cfg )
416418
@@ -615,13 +617,14 @@ func TestValidate_MinerMaxConsecutiveErrors(t *testing.T) {
615617
616618func TestControlMiner_PowerCalculation (t * testing.T ) {
617619 cfg := & Config {
618- FanRHighThreshold : 80 ,
619- FanRLowThreshold : 50 ,
620- MinerPowerStandby : 0.2 ,
621- MinerPowerEco : 1.2 ,
622- MinerPowerStandard : 1.8 ,
623- MinerPowerSuper : 2.5 ,
624- MinersPowerLimit : 10.0 ,
620+ FanRHighThreshold : 80 ,
621+ FanRLowThreshold : 50 ,
622+ MinerPowerStandby : 0.2 ,
623+ MinerPowerEco : 1.2 ,
624+ MinerPowerStandard : 1.8 ,
625+ MinerPowerSuper : 2.5 ,
626+ MinersPowerLimit : 10.0 ,
627+ MinerWorkModeUpgradeChecks : 5 ,
625628 }
626629 scheduler := newTestScheduler (cfg )
627630
0 commit comments