mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
# Motivation `EmbeddedChannel` is often used in testing and currently any code under testing that uses `context.localAddress` cannot be mocked, since `EmbeddedChannelCore` is always throwing. # Modification Use the same values for `localAddress` in `localAddress0()`. Same for `remoteAddress` # Result We can now properly test code that needs local/remote addresses with `EmbeddedChannel`