[tracker-miners/sam/file-processed-signal: 18/18] on-demand test: Wait for extraction failure marker to appear
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/file-processed-signal: 18/18] on-demand test: Wait for extraction failure marker to appear
- Date: Sat, 2 May 2020 11:43:06 +0000 (UTC)
commit f6ff043b3119b9c29be6ee3a11162eac50557743
Author: Sam Thursfield <sam afuera me uk>
Date: Sat May 2 13:33:45 2020 +0200
on-demand test: Wait for extraction failure marker to appear
Depends on https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/237
tests/functional-tests/miner-on-demand.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/miner-on-demand.py b/tests/functional-tests/miner-on-demand.py
index b8b92f9cb..695e09c06 100755
--- a/tests/functional-tests/miner-on-demand.py
+++ b/tests/functional-tests/miner-on-demand.py
@@ -95,8 +95,10 @@ class MinerOnDemandTest(fixtures.TrackerMinerTest):
# its extension, but it's not a valid MP3.
testfile = self.create_test_file('test-not-monitored/invalid.mp3')
- with self.extractor.await_file_processed(testfile, False, timeout=5000):
- self.miner_fs.index_file(testfile.as_uri())
+ # The extractor should record the file in the store as a failure.
+ with self.await_failsafe_marker_inserted(fixtures.AUDIO_GRAPH, testfile):
+ with self.extractor.await_file_processed(testfile, False, timeout=5000):
+ self.miner_fs.index_file(testfile.as_uri())
def test_index_directory_basic(self):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]