summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 15:36:18 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-07 15:36:18 +0100
commit7190cd5c34e28cb012a58f109fd13a3cdad19435 (patch)
tree33aa8f526f1989ce757377279e508de8c6ff83b9 /tests
parent3506c78afcfcf63d74d1b57b53518ea27dae2f8c (diff)
downloadsink-7190cd5c34e28cb012a58f109fd13a3cdad19435.tar.gz
sink-7190cd5c34e28cb012a58f109fd13a3cdad19435.zip
Don't trigger threadindex warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/modelinteractivitytest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modelinteractivitytest.cpp b/tests/modelinteractivitytest.cpp
index 5231c1a..caa9ca2 100644
--- a/tests/modelinteractivitytest.cpp
+++ b/tests/modelinteractivitytest.cpp
@@ -70,9 +70,9 @@ private slots:
70 { 70 {
71 // Setup 71 // Setup
72 { 72 {
73 Sink::ApplicationDomain::Mail mail("sink.dummy.instance1"); 73 Sink::ApplicationDomain::Event event("sink.dummy.instance1");
74 for (int i = 0; i < 1000; i++) { 74 for (int i = 0; i < 1000; i++) {
75 Sink::Store::create<Sink::ApplicationDomain::Mail>(mail).exec().waitForFinished(); 75 Sink::Store::create<Sink::ApplicationDomain::Event>(event).exec().waitForFinished();
76 } 76 }
77 } 77 }
78 78
@@ -85,7 +85,7 @@ private slots:
85 // Test 85 // Test
86 QTime time; 86 QTime time;
87 time.start(); 87 time.start();
88 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Mail>(query); 88 auto model = Sink::Store::loadModel<Sink::ApplicationDomain::Event>(query);
89 blockingTime += time.elapsed(); 89 blockingTime += time.elapsed();
90 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool()); 90 QTRY_VERIFY(model->data(QModelIndex(), Sink::Store::ChildrenFetchedRole).toBool());
91 // Never block longer than 10 ms 91 // Never block longer than 10 ms