diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-08-20 23:46:10 +0000 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-08-20 23:46:10 +0000 |
commit | 531c2939c5e267d29fb3f5e3193eb70b39804953 (patch) | |
tree | 1176882127170e99ba0e995219f1a66c211138ad /scalding/src/test | |
parent | af0fa6edf3c21ac38a8ab4e0fb425e5471e6c3b6 (diff) | |
download | sandcrawler-531c2939c5e267d29fb3f5e3193eb70b39804953.tar.gz sandcrawler-531c2939c5e267d29fb3f5e3193eb70b39804953.zip |
add a trap to ScoreJob
Diffstat (limited to 'scalding/src/test')
-rw-r--r-- | scalding/src/test/scala/sandcrawler/ScoreJobTest.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala b/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala index f92ba31..c397103 100644 --- a/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala +++ b/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala @@ -179,6 +179,8 @@ class ScoreJobTest extends FlatSpec with Matchers { 1 -> CrossrefStrings(1), 2 -> CrossrefStrings(2), 3 -> CrossrefStrings(3))) + .sink[(String, ReduceFeatures)](TypedTsv[(String, ReduceFeatures)](output + ".trapped")) { + _ => () } .sink[(String, Int, String, String)](TypedTsv[(String, Int, String, String)](output)) { // Grobid titles and slugs (in parentheses): // Title 1 (title1) |