domains: the rootfs apex test follows #338's alias wake
Since a55f0f23 (main, in this branch since Gate A) the edge serves a platform alias through its instance's own entry. The activator is handed the resident's own host, never the apex, so it still never owns one process under two hosts. The test asserted the activator was handed nothing, which predates #338.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−5
internal/domains/rootfs_apex_test.go+6 −5
CI failed — run details
diff --git a/internal/domains/rootfs_apex_test.go b/internal/domains/rootfs_apex_test.go| index 88a45e155..f3704e047 100644 |
| --- a/internal/domains/rootfs_apex_test.go |
| +++ b/internal/domains/rootfs_apex_test.go |
| @@ -31,9 +31,10 @@ func (a *apexActivator) RetireExcept(map[string]bool) {} |
| // TestPlatformApexOfRootfsIsAnAlias: the platform apex minted from a |
| // resident rootfs instance copies its upstream and nothing of its runtime, |
| -// so it is a plain socket route, not ActivatorOwned: the edge proxies it to |
| -// the resident's socket and never hands it to the activator, which would |
| -// otherwise own one process under two hosts. |
| +// so it is a plain socket route, not ActivatorOwned. Since #338's alias |
| +// wake (a55f0f23) the edge serves the alias through its instance's own |
| +// entry: the activator is handed the resident's own host, never the apex, |
| +// so it never owns one process under two hosts. |
| func TestPlatformApexOfRootfsIsAnAlias(t *testing.T) { |
| dir, err := os.MkdirTemp("", "ap") |
| if err != nil { |
| @@ -87,7 +88,7 @@ func TestPlatformApexOfRootfsIsAnAlias(t *testing.T) { |
| if rec.Body.String() != "resident" { |
| t.Fatalf("apex answered %d %q, want the resident's socket", rec.Code, rec.Body.String()) |
| } |
| - if len(act.served) != 0 { |
| - t.Fatalf("the activator was handed %v for the apex", act.served) |
| + if len(act.served) != 1 || act.served[0] != src.Host { |
| + t.Fatalf("the activator was handed %v for the apex, want only the resident's own host %s", act.served, src.Host) |
| } |
| } |