mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-04-21 07:24:34 +02:00
Removed salt from unrestricted groups: two unrestricted groups with
the same name will now be treated as the same group (this seems more intuitive than the alternative).
This commit is contained in:
@@ -77,8 +77,7 @@ public class H2DatabaseTest extends TestCase {
|
||||
random.nextBytes(raw);
|
||||
message = new TestMessage(messageId, MessageId.NONE, groupId, authorId,
|
||||
timestamp, raw);
|
||||
group = groupFactory.createGroup(groupId, "Group name", false,
|
||||
TestUtils.getRandomId());
|
||||
group = groupFactory.createGroup(groupId, "Group name", null);
|
||||
}
|
||||
|
||||
@Before
|
||||
@@ -534,7 +533,7 @@ public class H2DatabaseTest extends TestCase {
|
||||
MessageId childId3 = new MessageId(TestUtils.getRandomId());
|
||||
GroupId groupId1 = new GroupId(TestUtils.getRandomId());
|
||||
Group group1 = groupFactory.createGroup(groupId1, "Another group name",
|
||||
false, TestUtils.getRandomId());
|
||||
null);
|
||||
Message child1 = new TestMessage(childId1, messageId, groupId,
|
||||
authorId, timestamp, raw);
|
||||
Message child2 = new TestMessage(childId2, messageId, groupId,
|
||||
@@ -759,7 +758,7 @@ public class H2DatabaseTest extends TestCase {
|
||||
public void testUpdateSubscriptions() throws DbException {
|
||||
GroupId groupId1 = new GroupId(TestUtils.getRandomId());
|
||||
Group group1 = groupFactory.createGroup(groupId1, "Another group name",
|
||||
false, TestUtils.getRandomId());
|
||||
null);
|
||||
Database<Connection> db = open(false);
|
||||
Connection txn = db.startTransaction();
|
||||
|
||||
@@ -784,7 +783,7 @@ public class H2DatabaseTest extends TestCase {
|
||||
throws DbException {
|
||||
GroupId groupId1 = new GroupId(TestUtils.getRandomId());
|
||||
Group group1 = groupFactory.createGroup(groupId1, "Another group name",
|
||||
false, TestUtils.getRandomId());
|
||||
null);
|
||||
Database<Connection> db = open(false);
|
||||
Connection txn = db.startTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user