Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
d788d4e2
Commit
d788d4e2
authored
Dec 02, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
kns: Show information on why the test is failing
Which streams are holding us up?
parent
3d74a43a
Changes
2
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/KNSBackend/tests/KNSBackendTest.cpp
View file @
d788d4e2
...
...
@@ -55,7 +55,12 @@ QVector<AbstractResource*> KNSBackendTest::getResources(ResultsStream* stream, b
resources
+=
res
;
Q_EMIT
stream
->
fetchMore
();
});
Q_ASSERT
(
spyResources
.
wait
(
10000
));
bool
waited
=
spyResources
.
wait
(
10000
);
if
(
!
waited
)
{
if
(
auto
x
=
qobject_cast
<
AggregatedResultsStream
*>
(
stream
))
qDebug
()
<<
"waited"
<<
x
->
streams
();
}
Q_ASSERT
(
waited
);
Q_ASSERT
(
!
resources
.
isEmpty
()
||
canBeEmpty
);
return
resources
;
}
...
...
libdiscover/resources/ResourcesModel.h
View file @
d788d4e2
...
...
@@ -23,6 +23,8 @@ public:
AggregatedResultsStream
(
const
QSet
<
ResultsStream
*>&
streams
);
~
AggregatedResultsStream
();
QSet
<
QObject
*>
streams
()
const
{
return
m_streams
;
}
Q_SIGNALS:
void
finished
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment