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