test(19.7-09): gate workspace check and unreleased-pin policy, TestSessionReaper and TestAuthTime
- check-phase19.7.sh: workspace_check (framework to this checkout, the OAuth server plugin's user plugin to USER_PLUGIN) in the plugins, consumers and docker stages; consumer_with_user_plugin builds fonoteka.go and sm-bm-app against USER_PLUGIN through a scratch go.work; demo_pins accepts unreleased commits its canonical checkout holds and refuses any drift with PHASE197_RELEASED=1; self-test cases for each, one PASS line each - TestSessionReaper pins A-CR-01, A-IN-01 and A-IN-06 (memory and Redis stores, store errors, the GET stream re-check, the ephemeral label) - TestAuthTime pins auth_time at mint and through every refresh path - GO_TESTS and GO_TAGGED_TESTS require them with the plan 06/07 smokes
This commit is contained in:
@@ -67,3 +67,21 @@ func (p *Pier) StopReaper() {
|
||||
p.stopReap()
|
||||
}
|
||||
}
|
||||
|
||||
// SessionDone answers a channel closed once the local session's SDK server
|
||||
// session has ended (ss.Wait returned), and false when the session is not
|
||||
// connected on this instance.
|
||||
func (p *Pier) SessionDone(sid string) (<-chan struct{}, bool) {
|
||||
p.sessions.mu.Lock()
|
||||
ls := p.sessions.local[sid]
|
||||
p.sessions.mu.Unlock()
|
||||
if ls == nil || ls.ss == nil {
|
||||
return nil, false
|
||||
}
|
||||
done := make(chan struct{})
|
||||
go func() {
|
||||
_ = ls.ss.Wait()
|
||||
close(done)
|
||||
}()
|
||||
return done, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user