Skip to content

Commit a75869a

Browse files
committed
ESDK-4275 Fixed the ReactorWatchlistJUnitNew.dictionaryRecoveryTest() method to handle WRITE_CALL_AGAIN from the ReactorChannel.submit() method.
1 parent 4f4fa53 commit a75869a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Java/Eta/ValueAdd/src/test/java/com/thomsonreuters/upa/valueadd/reactor/ReactorWatchlistJUnitNew.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19865,7 +19865,15 @@ public void dictionaryRecoveryTest()
1986519865
eIter.setBufferAndRWFVersion(buffer, provider.reactorChannel().majorVersion(), provider.reactorChannel().majorVersion());
1986619866
assertEquals(CodecReturnCodes.SUCCESS, dictionaryRefresh.encode(eIter));
1986719867
submitOptions.clear();
19868-
assertTrue(provider.reactorChannel().submit(buffer, submitOptions, errorInfo) >= ReactorReturnCodes.SUCCESS);
19868+
19869+
int ret = 0;
19870+
19871+
do
19872+
{
19873+
ret = provider.reactorChannel().submit(buffer, submitOptions, errorInfo);
19874+
}while(ret == ReactorReturnCodes.WRITE_CALL_AGAIN);
19875+
19876+
assertTrue(ret >= ReactorReturnCodes.SUCCESS);
1986919877
providerReactor.dispatch(0);
1987019878

1987119879
/* Consumer receives refresh. */

0 commit comments

Comments
 (0)