feat: wake reconciled sessions for queued dispatch
This commit is contained in:
@@ -100,6 +100,17 @@ func TestCapacityShadowAndRegistry_BH_SES_03(t *testing.T) {
|
||||
if registry.Remove(first) || registry.Get("client-a") != second {
|
||||
t.Fatal("stale handle removed current session")
|
||||
}
|
||||
if !registry.Wake("client-a") {
|
||||
t.Fatal("wake did not find current session")
|
||||
}
|
||||
select {
|
||||
case <-second.DispatchWake():
|
||||
default:
|
||||
t.Fatal("wake was not delivered to current session")
|
||||
}
|
||||
if registry.Wake("missing") {
|
||||
t.Fatal("wake reported a missing session")
|
||||
}
|
||||
if !registry.Remove(second) {
|
||||
t.Fatal("current handle removal failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user