Fixed yet another test
This commit is contained in:
@ -77,9 +77,9 @@ public class ProofOfWorkServiceTest {
|
||||
when(proofOfWorkRepo.getItem(any(byte[].class))).thenReturn(new ProofOfWorkRepository.Item(null, 1001, 1002));
|
||||
doNothing().when(cryptography).doProofOfWork(any(ObjectMessage.class), anyLong(), anyLong(), any(ProofOfWorkEngine.Callback.class));
|
||||
|
||||
proofOfWorkService.doMissingProofOfWork();
|
||||
proofOfWorkService.doMissingProofOfWork(10);
|
||||
|
||||
verify(cryptography).doProofOfWork((ObjectMessage) isNull(), eq(1001L), eq(1002L),
|
||||
verify(cryptography, timeout(1000)).doProofOfWork((ObjectMessage) isNull(), eq(1001L), eq(1002L),
|
||||
any(ProofOfWorkEngine.Callback.class));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user