... sync
authorVolker Birk <vb@pep.foundation>
Thu, 23 Aug 2018 10:40:58 +0200
branchsync
changeset 288276f789a19606
parent 2881 26b451252f73
child 2883 a372b8f58aa1
...
test/src/engine_tests/SyncTests.cc
     1.1 --- a/test/src/engine_tests/SyncTests.cc	Thu Aug 23 10:33:59 2018 +0200
     1.2 +++ b/test/src/engine_tests/SyncTests.cc	Thu Aug 23 10:40:58 2018 +0200
     1.3 @@ -122,6 +122,13 @@
     1.4      cout << "creating thread for sync\n";
     1.5      sync_thread = new thread(Sync_Adapter::sync_thread, sync, &adapter);
     1.6   
     1.7 +    cout << "trigger KeyGen event\n";
     1.8 +    signal_Sync_event(sync, Sync_PR_keysync, KeyGen);
     1.9 +
    1.10 +    cout << "waiting for empty queue\n";
    1.11 +    while (!adapter.q.empty()) {
    1.12 +        sleep(1);
    1.13 +    }
    1.14      cout << "sending shutdown to sync thread\n";
    1.15      adapter.q.push_front(nullptr);
    1.16      sync_thread->join();