v0.5: WHIP single-publisher enforcement integration test (409 path) #26

Closed
opened 2026-05-10 21:03:14 -04:00 by zgaetano · 0 comments
Owner

Summary

The single-publisher enforcement (409 Conflict when a second publisher attempts to join an already-occupied stream) is implemented in WHIPHandler.Publish but never exercised by a test.

Acceptance criteria

  • Add TestWHIPHandler_Publish_409OnSecondPublisher to whip_handler_test.go
  • Register a dummy ingest and inject a fake IngestPeer directly into h.ingestByStream["probe"]
  • POST a second offer body; verify 409 response
  • Verify the count does not increment on a 409
## Summary The single-publisher enforcement (409 Conflict when a second publisher attempts to join an already-occupied stream) is implemented in `WHIPHandler.Publish` but never exercised by a test. ## Acceptance criteria - Add `TestWHIPHandler_Publish_409OnSecondPublisher` to `whip_handler_test.go` - Register a dummy ingest and inject a fake `IngestPeer` directly into `h.ingestByStream["probe"]` - POST a second offer body; verify 409 response - Verify the count does not increment on a 409
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: zgaetano/datarhei-dragonfork-core#26
No description provided.