From 32843fdb990684108933e9916cad422b4b8c91ca Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 19 Oct 2023 21:24:09 +0300 Subject: [PATCH] test: add missing error check --- links_test.go | 3 +++ 1 file changed, 3 insertions(+) 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)