mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +01:00
Fix testdata creation:
* Create at least one contact
This commit is contained in:
@@ -115,6 +115,9 @@ public class TestDataCreatorImpl implements TestDataCreator {
|
||||
|
||||
public void createTestData(int numContacts, int numPrivateMsgs,
|
||||
int numBlogPosts, int numForums, int numForumPosts) {
|
||||
if (numContacts == 0)
|
||||
throw new IllegalArgumentException(
|
||||
"Number of contacts must be >= 1");
|
||||
ioExecutor.execute(() -> {
|
||||
try {
|
||||
createTestDataOnIoExecutor(numContacts, numPrivateMsgs,
|
||||
|
||||
Reference in New Issue
Block a user