Make the sync test run

master
Gernot 3 months ago
parent 68b28e6cfd
commit c48c61334c

@ -39,7 +39,8 @@ int main(int argc, char **argv)
Adapter::session.initialize(Adapter::SyncModes::Async, false, messageToSend, notifyHandshake);
// Create new identity
TESTLOG("updating or creating identity for me");
::pEp_identity *me = new_identity("alice@peptest.ch", NULL, "23", "Who the F* is Alice");
::config_cipher_suite(Adapter::session(), PEP_CIPHER_SUITE_CV25519);
::pEp_identity *me = new_identity("udp://0.0.0.0", NULL, "23", "Who the F* is Alice");
assert(me);
::PEP_STATUS status = ::myself(Adapter::session(), me);
::free_identity(me);
@ -54,6 +55,10 @@ int main(int argc, char **argv)
TESTLOG("SYNC START");
TESTLOG("starting the adapter including sync");
Adapter::startup();
printf("Starting UDP transport...\n");
::PEP_transport_status_code tsc;
::PEP_transport_t t;
status = udp_startup(&t, &tsc);
TESTLOG("SYNC STOP");
usleep(sleepuSec);
Adapter::stop_sync();

Loading…
Cancel
Save