monitorAddConnectionCallbackTest test was too specific -

we shouldnt test for exactly two subscription updates when
more than two is sufficent
This commit is contained in:
Jeff Hill
2009-08-28 23:28:29 +00:00
parent 490d5db2f8
commit 3fe4def288
+2 -2
View File
@@ -2218,14 +2218,14 @@ void monitorAddConnectionCallbackTest ( const char *pName, unsigned interestLeve
while ( eventCount < 2 ) {
ca_pend_event ( 0.1 );
}
verify ( eventCount == 2u );
verify ( eventCount >= 2u );
status = ca_get_callback ( DBR_DOUBLE, chan, nUpdatesTester, &getCallbackCount );
SEVCHK ( status, "monitorAddConnectionCallback get callback" );
while ( getCallbackCount == 0 ) {
ca_pend_event ( 0.1 );
}
verify ( eventCount == 2u );
verify ( eventCount >= 2u );
verify ( getCallbackCount == 1u );
status = ca_clear_channel ( chan );