testmark-go

fix unchecked error in a test

commit f242a34a5553c3166d2a3cbe3ef287e3300b3d15 · parent ebe39fc1c6 · browse this tree
Eric Myhre, 2023-05-01 10:41:10 UTC

diff --git a/patch_test.go b/patch_test.go
index f7a9e12..924ec9f 100644
--- a/patch_test.go
+++ b/patch_test.go
@@ -11,6 +11,9 @@ func TestPatch(t *testing.T) {
 		panic(err)
 	}
 	doc, err := ReadFile(filepath.Join(testdata, "example.md"))
+	if err != nil {
+		panic(err)
+	}
 	doc = Patch(doc,
 		Hunk{Name: "more-data", InfoString: "text", Body: []byte("you have been...\nreplaced.\nand gotten\nrather longer.")},
 		Hunk{Name: "this-is-the-data-name", InfoString: "", Body: []byte("this one gets shorter.")},