Events check: allow for multiple Connect events
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 10 Mar 2014 13:24:42 +0000 (14:24 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 10 Mar 2014 13:25:54 +0000 (14:25 +0100)
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.

t/19-events.t
t/29-events.t

index 3c286b2..e7745f9 100644 (file)
@@ -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,
index 5c0ef4b..f93739b 100644 (file)
@@ -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,