monitorAddConnectionCallbackTest test was too specific -
we shouldnt test for exactly two subscription updates when more than two is sufficent
This commit is contained in:
+2
-2
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user