Skip to content

Commit

Permalink
test: add missing error check (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Oct 20, 2023
1 parent eae725a commit 2e44069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions links_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e44069

Please sign in to comment.