shogo82148 / Redis-Fast

fast perl binding for Redis database
https://metacpan.org/release/Redis-Fast
Other
25 stars 21 forks source link

fix broken tests using fork(2) #112

Closed shogo82148 closed 3 years ago

shogo82148 commented 3 years ago

t/03-pubsub.t fails with Failed test 'properly died with EOF'. but the test suite doesn't catch it.

t/03-pubsub.t .............. 3/?     # child is ready to test, signal parent to kill our server
    # parent killed pub/sub redis server, signal child to proceed
    # now, check wait_for_messages(), should die...
    # parent waiting for child 5812...

    #   Failed test 'properly died with EOF'
    #   at t/03-pubsub.t line 213.
    #                   'Not connected to any server at t/03-pubsub.t line 212.
    # '
    #     doesn't match '(?^:EOF from server)'
t/03-pubsub.t .............. 4/?     # CHILD: reconnected (with a 10s timeout)
    # CHILD: is ready to test, signal parent to restart our server
    # PARENT: killed pub/sub redis server, signal child to proceed
    # CHILD: launch wait_for_messages(2), with reconnect...
    # CHILD: reconnected (with a 10s timeout)
    # PARENT: has relaunched the server...
    # CHILD: after 2 sec, nothing yet, retrying
    # CHILD: launch wait_for_messages(2), with reconnect...
    # CHILD: after 2 sec, nothing yet, retrying
    # CHILD: launch wait_for_messages(2), with reconnect...
    # PARENT: waiting for child 5814...
    # CHILD: child received the message