aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/test
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-08-15 20:20:43 -0700
committerBryan Newbold <bnewbold@archive.org>2018-08-15 20:20:43 -0700
commitdf341a68459829380f1f01015768acee5642f15b (patch)
treeac707bad5e11bc15b6823ceefb22300ec1cb0266 /scalding/src/test
parentfafe5b1b2d8f34c6f336b7ae1a48cc78deb90c11 (diff)
downloadsandcrawler-df341a68459829380f1f01015768acee5642f15b.tar.gz
sandcrawler-df341a68459829380f1f01015768acee5642f15b.zip
grobid scoring: status_code as signed int, not string
Diffstat (limited to 'scalding/src/test')
-rw-r--r--scalding/src/test/scala/sandcrawler/ScoreJobTest.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala b/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala
index 34081a5..f68ee1d 100644
--- a/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala
+++ b/scalding/src/test/scala/sandcrawler/ScoreJobTest.scala
@@ -150,8 +150,9 @@ class ScoreJobTest extends FlatSpec with Matchers {
JsonString.replace("<<TITLE>>", "Title 2")
)
- val Ok = "200"
- val Bad = "400"
+ // bnewbold: status codes aren't strings, they are uint64
+ val Ok : Long = 200
+ val Bad : Long = 400
val StatusCodes = List(Ok, Ok, Ok, Bad, Ok, Bad)
val SampleData : List[List[Array[Byte]]] = (Sha1Strings, JsonStrings, StatusCodes)