check error value

pull/4739/head
Sharif Elgamal 2019-07-11 12:19:41 -07:00
parent c8f9562555
commit f16ae95724
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ func TestExtract(t *testing.T) {
}
tempfile := filepath.Join(tempdir, "tmpdata.json")
ioutil.WriteFile(tempfile, src, 0666)
err = ioutil.WriteFile(tempfile, src, 0666)
if err != nil {
t.Fatalf("Writing temp json file: %v", err)
}
expected := map[string]interface{}{
"Hint: This is not a URL, come on.": "",