diff --git a/links_test.go b/links_test.go index 303b5e6a..13e51b63 100644 --- a/links_test.go +++ b/links_test.go @@ -171,6 +171,9 @@ func TestLinks_ParseURL(t *testing.T) { } pageToken, err := pageTokenFromURL(lT.url) + if err != nil { + t.Fatal(err) + } if pageToken != lT.expectedPageToken { t.Errorf("expected pageToken for '%s' to be '%s', was '%s'", lT.url, lT.expectedPageToken, pageToken)