From 6db02b1f5b3d47578e1bc0a9bb7ca85da2fe2de8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 20 Oct 2017 18:33:05 +0200 Subject: No benchmarking in tests --- tests/dummyresourcetest.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp index 28e8337..6f307e6 100644 --- a/tests/dummyresourcetest.cpp +++ b/tests/dummyresourcetest.cpp @@ -276,37 +276,6 @@ private slots: QTRY_COMPARE(model->rowCount(QModelIndex()), 0); } } - - void testCommandResponsiveness() - { - // Test responsiveness including starting the process. - VERIFYEXEC(Sink::Store::removeDataFromDisk("sink.dummy.instance1")); - - QTime time; - time.start(); - - Sink::ApplicationDomain::Event event("sink.dummy.instance1"); - event.setProperty("uid", "testuid"); - QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); - event.setProperty("summary", "summaryValue"); - - auto notifier = QSharedPointer::create("sink.dummy.instance1", "sink.dummy"); - bool gotNotification = false; - int duration = 0; - notifier->registerHandler([&gotNotification, &duration, &time](const Sink::Notification ¬ification) { - if (notification.type == Sink::Notification::RevisionUpdate) { - gotNotification = true; - duration = time.elapsed(); - } - }); - - Sink::Store::create(event).exec(); - // Wait for notification - QUICK_TRY_VERIFY(gotNotification); - - QVERIFY2(duration < 100, QString::fromLatin1("Processing a create command took more than 100ms: %1").arg(duration).toLatin1()); - VERIFYEXEC(Sink::ResourceControl::shutdown("sink.dummy.instance1")); - } }; QTEST_MAIN(DummyResourceTest) -- cgit v1.2.3