From 2e44069e39bc8acfc041940ed05ab13218847e00 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 20 Oct 2023 17:18:32 +0300 Subject: [PATCH] test: add missing error check (#647) --- 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)