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

This commit is contained in:
AetherForge
2026-06-07 04:58:55 -07:00
parent b2a7b1723f
commit 7b2d41cda8
118 changed files with 9938 additions and 223 deletions

View File

@@ -82,6 +82,20 @@ func TestAuthResponseOmitsAdaptiveStrategyWhenAIControlEnabled(t *testing.T) {
if _, ok := payload["adaptive_strategy"]; ok {
t.Fatal("adaptive_strategy must be omitted when ai_control_enabled is true")
}
raw, ok := payload["spread_temperament"]
if !ok {
t.Fatal("expected spread_temperament in auth_response when ai_control_enabled")
}
data, _ := json.Marshal(raw)
var temperament struct {
TierOrder []string `json:"tier_order"`
}
if err := json.Unmarshal(data, &temperament); err != nil {
t.Fatal(err)
}
if len(temperament.TierOrder) == 0 {
t.Fatalf("empty spread_temperament: %+v", temperament)
}
}
func repeatChar(c byte, n int) string {