Waiting for more long-term is a problem, you know that CI is sometime very 
slow, the test case is just to get globalTxId of this transaction and TxEvents

List<String> distinctGlobalTxIds = eventRepo.findDistinctGlobalTxId();
assertThat(distinctGlobalTxIds.size(), is(1));

String globalTxId = distinctGlobalTxIds.get(0);
List<TxEvent> events = 
eventRepo.findByGlobalTxIdOrderByCreationTime(globalTxId);


Maybe we use a more reliable solution

1. Modify  findDistinctGlobalTxId method

@Query("SELECT globalTxId from TxEvent order by creationTime desc")
List<String> findDistinctGlobalTxId();

2. Delete assertThat(distinctGlobalTxIds.size(), is(1));

String globalTxId = distinctGlobalTxIds.get(0);
List<TxEvent> events = 
eventRepo.findByGlobalTxIdOrderByCreationTime(globalTxId);



> 在 2019年9月29日,下午2:22,Willem Jiang <willem.ji...@gmail.com> 写道:
> 
> We could wait for a while to let the compensation finish before tearDown.
> 
> --  
> Willem Jiang
> 
> Twitter: willemjiang  
> Weibo: 姜宁willem
> 

Reply via email to