Azure / go-amqp

AMQP 1.0 client library for Go.
https://github.com/Azure/go-amqp
MIT License
104 stars 56 forks source link

Fixed write delay implementation for fake.NetConn #301

Closed jhendrixMSFT closed 1 year ago

jhendrixMSFT commented 1 year ago

NetConn.Write will now send its payload to Conn on a separate goroutine, allowing proper simulation of a delayed response. A fake responder now returns a fake.Response that contains the payload and any write delay. Added newResponse() helper for returning frames without delay.

Fixes https://github.com/Azure/go-amqp/issues/290