![]() # 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` |
||
---|---|---|
.. | ||
AsyncTestingChannel.swift | ||
AsyncTestingEventLoop.swift | ||
Embedded.swift |