mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Calculate the timestamp outside the subscription/transport update
writer - this will allow it to be saved so new connections can work out whether they should send updates.
This commit is contained in:
@@ -779,8 +779,9 @@ public abstract class DatabaseComponentTest extends TestCase {
|
||||
oneOf(database).getVisibleSubscriptions(txn, contactId);
|
||||
will(returnValue(Collections.singletonMap(group, 0L)));
|
||||
// Add the subscriptions to the writer
|
||||
oneOf(subscriptionWriter).writeSubscriptions(
|
||||
Collections.singletonMap(group, 0L));
|
||||
oneOf(subscriptionWriter).writeSubscriptionUpdate(
|
||||
with(Collections.singletonMap(group, 0L)),
|
||||
with(any(long.class)));
|
||||
}});
|
||||
DatabaseComponent db = createDatabaseComponent(database, cleaner);
|
||||
|
||||
@@ -811,7 +812,8 @@ public abstract class DatabaseComponentTest extends TestCase {
|
||||
oneOf(database).getTransports(txn);
|
||||
will(returnValue(transports));
|
||||
// Add the properties to the writer
|
||||
oneOf(transportWriter).writeTransports(transports);
|
||||
oneOf(transportWriter).writeTransportUpdate(with(transports),
|
||||
with(any(long.class)));
|
||||
}});
|
||||
DatabaseComponent db = createDatabaseComponent(database, cleaner);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user