From: Adam Dickmeiss Date: Mon, 10 Mar 2014 13:24:42 +0000 (+0100) Subject: Events check: allow for multiple Connect events X-Git-Tag: v1.30~4 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ce82406eeafb478b9c854c50efaaf42282206cf1;p=ZOOM-Perl-moved-to-github.git Events check: allow for multiple Connect events we should in fact allow for multiple events in more places - such as SEND_DATA, RECV_DATA . They are generated for any partial net writes/reads. --- diff --git a/t/19-events.t b/t/19-events.t index 3c286b2..e7745f9 100644 --- a/t/19-events.t +++ b/t/19-events.t @@ -45,7 +45,7 @@ ok(1, "huge array reference argument rejected"); # on any of the connections we pass in. assert_event_stream($conn, - Net::Z3950::ZOOM::EVENT_CONNECT, + -(Net::Z3950::ZOOM::EVENT_CONNECT), Net::Z3950::ZOOM::EVENT_SEND_APDU, Net::Z3950::ZOOM::EVENT_SEND_DATA, Net::Z3950::ZOOM::EVENT_RECV_DATA, diff --git a/t/29-events.t b/t/29-events.t index 5c0ef4b..f93739b 100644 --- a/t/29-events.t +++ b/t/29-events.t @@ -27,7 +27,7 @@ ok(1, "huge array reference argument rejected"); # See comments in 19-event.t assert_event_stream($conn, - ZOOM::Event::CONNECT, + -(ZOOM::Event::CONNECT), ZOOM::Event::SEND_APDU, ZOOM::Event::SEND_DATA, ZOOM::Event::RECV_DATA,