~thomas-voss/dbus-cpp/fix-invalid-reads-in-executor

« back to all changes in this revision

Viewing changes to tests/async_execution_load_test.cpp

  • Committer: thomas-voss
  • Date: 2014-10-02 07:10:09 UTC
  • Revision ID: thomas.voss@canonical.com-20141002071009-qtgfxy5qgbozb210
Lower the default number of remote queries to make Jenkins happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    auto service = core::dbus::Service::use_service(bus, DBus::name());
124
124
    auto dbus = service->object_for_path(core::dbus::types::ObjectPath{DBUS_PATH_DBUS});
125
125
 
126
 
    auto ec = std::make_shared<CountingEventCollector>(5000);
 
126
    auto ec = std::make_shared<CountingEventCollector>(500);
127
127
 
128
 
    std::thread t1{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 1000, ec);}};
129
 
    std::thread t2{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 1000, ec);}};
130
 
    std::thread t3{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 1000, ec);}};
131
 
    std::thread t4{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 1000, ec);}};
132
 
    std::thread t5{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 1000, ec);}};
 
128
    std::thread t1{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 100, ec);}};
 
129
    std::thread t2{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 100, ec);}};
 
130
    std::thread t3{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 100, ec);}};
 
131
    std::thread t4{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 100, ec);}};
 
132
    std::thread t5{[dbus, ec]() {invoke_list_names_n_times_and_update_event_collector(dbus, 100, ec);}};
133
133
 
134
134
    EXPECT_TRUE(ec->wait_for(std::chrono::seconds{60}));
135
135