Skip to content

add unit test coverage for CongestionControl #4747

@aglinxinyuan

Description

@aglinxinyuan

Task Summary

Add CongestionControlSpec covering the TCP-style slow-start window manager:

  • canSend true initially; false once in-transit reaches the window size
  • ack no-op for unknown ids; removes the acked message; grows window via slow start when acked within ackTimeLimit
  • getBufferedMessagesToSend bounded by remaining window capacity; empty when window is full
  • getAllMessages unions in-transit and queued sets
  • getTimedOutInTransitMessages is empty when nothing is in transit, and excludes messages still inside the resend time limit
  • enqueueMessage does not place the message into the in-transit set on its own
  • getStatusReport mentions window/in-transit/waiting

Priority

P3 – Low

Task Type

  • Testing / QA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions