[tracker-miners/sam/ft-traceback-fix] functional-tests: Remove a double-traceback
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/ft-traceback-fix] functional-tests: Remove a double-traceback
- Date: Wed, 10 Jul 2019 15:06:57 +0000 (UTC)
commit 69681abfa418d8d41ad7e682b93889417f9bcc3f
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Jul 10 15:59:41 2019 +0100
functional-tests: Remove a double-traceback
Before:
Traceback (most recent call last):
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/helpers.py", line 403, in
await_resource_inserted
self.loop.run_checked()
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/mainloop.py", line 58, in
run_checked
raise self._exception
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/helpers.py", line 294, in
_graph_updated_timeout_cb
raise GraphUpdateTimeoutException()
common.utils.helpers.GraphUpdateTimeoutException
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 145, in
setUp
super(CommonTrackerMinerFTSTest, self).setUp()
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 82, in
setUp
self.create_test_data()
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 117, in
create_test_data
self.tracker.await_resource_inserted(NFO_DOCUMENT, url=self.uri(tf))
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/helpers.py", line 405, in
await_resource_inserted
raise GraphUpdateTimeoutException("Timeout waiting for resource: class %s, URL %s, title %s" %
(rdf_class, url, title))
common.utils.helpers.GraphUpdateTimeoutException: Timeout waiting for resource: class
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Document, URL
file:///home/tracker/tracker-tests/tmp6bkbec7d/test-monitored/dir1/file2.txt, title None
After:
Traceback (most recent call last):
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 145, in
setUp
super(CommonTrackerMinerFTSTest, self).setUp()
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 82, in
setUp
self.create_test_data()
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/minertest.py", line 117, in
create_test_data
self.tracker.await_resource_inserted(NFO_DOCUMENT, url=self.uri(tf))
File "/builds/GNOME/tracker-miners/tests/functional-tests/common/utils/helpers.py", line 405, in
await_resource_inserted
raise GraphUpdateTimeoutException("Timeout waiting for resource: class %s, URL %s, title %s" %
(rdf_class, url, title))
common.utils.helpers.GraphUpdateTimeoutException: Timeout waiting for resource: class
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Document, URL
file:///home/tracker/tracker-tests/tmp6bkbec7d/test-monitored/dir1/file2.txt, title None
tests/functional-tests/common/utils/helpers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index 9098664a9..b8d469c3d 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -402,7 +402,7 @@ class StoreHelper (Helper):
try:
self.loop.run_checked()
except GraphUpdateTimeoutException as e:
- raise GraphUpdateTimeoutException("Timeout waiting for resource: class %s, URL %s, title %s"
% (rdf_class, url, title))
+ raise GraphUpdateTimeoutException("Timeout waiting for resource: class %s, URL %s, title %s"
% (rdf_class, url, title)) from e
self.inserts_match_function = None
self.class_to_track = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]