• Bjorn Svensson's avatar
    Add asynchronous test for pubsub using RESP3 (#1012) · da5a4ff3
    Bjorn Svensson authored
    * Include `unsubscribe` as a subscribe reply in RESP3
    
    By providing the (p)unsubscribe message via the subscribe callback,
    instead of via the push callback, we get the same behavior in RESP3
    as in RESP2.
    
    * Add asynchronous test for pubsub using RESP3
    
    The testcase will subscribe to a channel, and via a second client
    a message is published to the channel. After receiving the message
    the testcase will unsubscribe and disconnect.
    
    This RESP3 testcase reuses the subscribe callback from the RESP2
    testcase to make sure we have a common behavior.
    da5a4ff3
test.c 59.4 KB