Remove race reload test

This commit is contained in:
Theodor S. Midtlien
2026-09-18 12:22:57 +02:00
parent 29be224cdf
commit 64c84df357
2 changed files with 0 additions and 46 deletions
-8
View File
@@ -2914,10 +2914,6 @@ func (s *Server) ResolveTarget(id ipcauth.Identity, handle string) (ipcauth.Targ
match, matchErr := s.profileManager.MatchProfiles(handle)
if afterProfileResolve != nil {
afterProfileResolve()
}
if matchErr != nil {
log.Debugf("failed to match profile %q: %v", handle, matchErr)
return ipcauth.Target{}, matchHandleError(handle, matchErr)
@@ -2981,10 +2977,6 @@ func (s *Server) targetProfile(ctx context.Context) (*profilemanager.Profile, er
return resolved, nil
}
// afterProfileResolve is a seam for tests to run a concurrent profile switch
// between the resolution that stamps owners and the reload that publishes them.
var afterProfileResolve func()
// reloadActiveConfig refreshes the daemon's copy of the active profile's config
// from disk, which is where SessionHolder reads the owner of a live session.
//