mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Update integration tests.
This commit is contained in:
@@ -743,7 +743,7 @@ public class GroupInvitationIntegrationTest
|
||||
throws DbException {
|
||||
byte[] signature = groupInvitationFactory.signInvitation(contact1From0,
|
||||
privateGroup.getId(), timestamp, author0.getPrivateKey());
|
||||
long timer = getAutoDeleteTimer(c0, contactId1From0);
|
||||
long timer = getAutoDeleteTimer(c0, contactId1From0, timestamp);
|
||||
groupInvitationManager0.sendInvitation(privateGroup.getId(),
|
||||
contactId1From0, text, timestamp, signature, timer);
|
||||
}
|
||||
|
||||
@@ -460,9 +460,9 @@ public abstract class BriarIntegrationTest<C extends BriarIntegrationTestCompone
|
||||
}
|
||||
|
||||
protected long getAutoDeleteTimer(BriarIntegrationTestComponent component,
|
||||
ContactId contactId) throws DbException {
|
||||
return component.getDatabaseComponent().transactionWithResult(true,
|
||||
ContactId contactId, long timestamp) throws DbException {
|
||||
return component.getDatabaseComponent().transactionWithResult(false,
|
||||
txn -> component.getAutoDeleteManager().getAutoDeleteTimer(txn,
|
||||
contactId));
|
||||
contactId, timestamp));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user