Fix session holder logic for profiles without owner.

This commit is contained in:
Theodor S. Midtlien
2026-10-27 13:21:59 +01:00
parent 4ab791ba23
commit 748bcb072e
3 changed files with 38 additions and 3 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ func TestResolveTarget_RefreshesActiveConfigForAnyHandle(t *testing.T) {
// The daemon's copy as it stood before the claim landed on disk.
s.config = &profilemanager.Config{}
s.clientRunning = true
_, running := s.SessionHolder()
require.False(t, running, "fixture is wrong: the stale copy already names an owner")
stale, _ := s.SessionHolder()
require.False(t, stale.Matches(owner), "fixture is wrong: the stale copy already names an owner")
target, err := s.ResolveTarget(owner, tc.handle)
require.NoError(t, err)