diff --git a/pkg/model/article_test.go b/pkg/model/article_test.go index ea6f6ba..e7f93f7 100644 --- a/pkg/model/article_test.go +++ b/pkg/model/article_test.go @@ -59,7 +59,7 @@ func TestGetRandomArticlesWhenTakeIsGreaterThanLenOfArticlesArray(t *testing.T) } close(articles) randomArticles := TakeRandomArticles(articles, 5) - assert.Len(t, randomArticles, len(articles)) + assert.Len(t, randomArticles, 3) } func TestGetRandomArticlesWhenTakeIsSmallerThanLenOfArticlesArray(t *testing.T) {