region HA P3b T5: root-runner fixture: read empty IPv4 inventory
The empty-address assertion accepts the iproute2 empty array for an existing interface without IPv4 addresses. Keep command success, no-address and no-local-route assertions.
Co-Authored-By: GPT-6 Astra (codex) <noreply@openai.com>
1 file changed,
+1
−1
internal/host/group_hairpin_rootrunner_linux_test.go+1 −1
Intent
Attributed to this commit: 19.6 g CO₂e (2,404,639 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p3b-build, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/host/group_hairpin_rootrunner_linux_test.go b/internal/host/group_hairpin_rootrunner_linux_test.go| index 0d0e0baeb..f17a91e3f 100644 |
| --- a/internal/host/group_hairpin_rootrunner_linux_test.go |
| +++ b/internal/host/group_hairpin_rootrunner_linux_test.go |
| @@ -438,7 +438,7 @@ func hairpinAssertEmpty(t *testing.T) { |
| var rows []struct { |
| Addrs []any `json:"addr_info"` |
| } |
| - if json.Unmarshal([]byte(out), &rows) != nil || len(rows) != 1 || len(rows[0].Addrs) != 0 { |
| + if strings.TrimSpace(out) != "[]" && (json.Unmarshal([]byte(out), &rows) != nil || len(rows) != 1 || len(rows[0].Addrs) != 0) { |
| t.Fatal("hairpin still assigned", out) |
| } |
| routes := hairpinCmd(t, "ip", "-j", "-4", "route", "show", "table", "local", "dev", hairpin.Interface) |