mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +01:00
Get the outgoing connection number from the database.
This commit is contained in:
@@ -99,8 +99,9 @@ public class BatchConnectionReadWriteTest extends TestCase {
|
|||||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||||
ConnectionWriterFactory connFactory =
|
ConnectionWriterFactory connFactory =
|
||||||
alice.getInstance(ConnectionWriterFactory.class);
|
alice.getInstance(ConnectionWriterFactory.class);
|
||||||
|
long connection = db.getConnectionNumber(contactId, transportId);
|
||||||
ConnectionWriter conn = connFactory.createConnectionWriter(out,
|
ConnectionWriter conn = connFactory.createConnectionWriter(out,
|
||||||
Long.MAX_VALUE, true, transportId, 0L, aliceSecret);
|
Long.MAX_VALUE, true, transportId, connection, aliceSecret);
|
||||||
ProtocolWriterFactory protoFactory =
|
ProtocolWriterFactory protoFactory =
|
||||||
alice.getInstance(ProtocolWriterFactory.class);
|
alice.getInstance(ProtocolWriterFactory.class);
|
||||||
OutgoingBatchConnection batchOut = new OutgoingBatchConnection(conn, db,
|
OutgoingBatchConnection batchOut = new OutgoingBatchConnection(conn, db,
|
||||||
|
|||||||
Reference in New Issue
Block a user