fix(gateway): qualify concurrent fair allocation

This commit is contained in:
sechmachine
2026-07-30 06:19:00 +07:00
parent ff23fc9876
commit b7a42dc652
4 changed files with 63 additions and 23 deletions
+2
View File
@@ -847,7 +847,9 @@ func TestProviderDisconnectEndsPublicGatewaySessionReconnectable(t *testing.T) {
func TestProviderTerminalCleanupFailureReportsCleanupPending(t *testing.T) {
h := newGatewayTransportHarnessWithoutClipboard(t)
h.drainInitialMedia(t)
h.session.mu.Lock()
h.session.failure = FakeFailureTerminationTimeout
h.session.mu.Unlock()
h.session.EmitEvent(ProviderEvent{Kind: ProviderEventTerminated, Payload: []byte{1, 2, 3, 4}})
h.waitReleased(t)