Update integration tests.

This commit is contained in:
akwizgran
2020-12-03 18:00:31 +00:00
parent 6bac5b08ab
commit 04cdf27a1c
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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));
}
}