Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
21
server/internal/strategy/fleet_role_test.go
Normal file
21
server/internal/strategy/fleet_role_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package strategy
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestEmberwakeHeatSeederUsesSeedPressure(t *testing.T) {
|
||||
if h := EmberwakeHeat("seeder", 0.8, 0); h != 0.8 {
|
||||
t.Fatalf("heat=%v", h)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEmberwakeHeatMinerUsesHashratePressure(t *testing.T) {
|
||||
if h := EmberwakeHeat("miner", 0, 0.55); h != 0.55 {
|
||||
t.Fatalf("heat=%v", h)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEmberwakeHeatClamps(t *testing.T) {
|
||||
if h := EmberwakeHeat("miner", 0, 2); h != 1 {
|
||||
t.Fatalf("heat=%v", h)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user