mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 06:41:41 +01:00
Merge pull request #6694 from alvasw/fix_broken_protected_storage_entry_test
Fix broken ProtectedStorageEntryTest
This commit is contained in:
commit
a3f2d6e439
1 changed files with 5 additions and 2 deletions
|
@ -37,6 +37,7 @@ import org.junit.jupiter.api.BeforeEach;
|
|||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
@ -255,8 +256,10 @@ public class ProtectedStorageEntryTest {
|
|||
|
||||
KeyPair ownerKeys = TestUtils.generateKeyPair();
|
||||
IncompatiblePayload incompatiblePayload = new IncompatiblePayload(ownerKeys.getPublic());
|
||||
assertThrows(IllegalArgumentException.class, () ->
|
||||
new ProtectedStorageEntry(incompatiblePayload,ownerKeys.getPublic(), 1,
|
||||
new byte[] { 0 }, Clock.systemDefaultZone());
|
||||
new byte[] { 0 }, Clock.systemDefaultZone())
|
||||
);
|
||||
}
|
||||
|
||||
// TESTCASE: PSEs received with future-dated timestamps are updated to be min(currentTime, creationTimeStamp)
|
||||
|
|
Loading…
Add table
Reference in a new issue