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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user