-
Notifications
You must be signed in to change notification settings - Fork 149
Conversation
Test failing due to #546, not related to this change. |
Codecov Report
@@ Coverage Diff @@
## master #796 +/- ##
=======================================
Coverage 52.28% 52.28%
=======================================
Files 126 126
Lines 2773 2773
Branches 151 151
=======================================
Hits 1450 1450
Misses 1271 1271
Partials 52 52
Continue to review full report at Codecov.
|
If you follow the lifecycle of that particular test case, it tries to create a URL using the function creator.CreateURL with first parameter testCase.url, which is empty, and then it fails the condition that long link is non-empty and returns the ErrInvalidLongLink(longLink) which also creates an error with an empty message. Later on, that function is checked whether the alias exists. |
@@ -51,7 +52,9 @@ func TestShortLinkCreatorPersist_CreateShortLink(t *testing.T) { | |||
user: entity.User{ | |||
Email: "[email protected]", | |||
}, | |||
shortLink: entity.ShortLink{}, | |||
shortLink: entity.ShortLink{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the long link is not provided, this test case will have an error because the long link is not provided. If any long link is provided then the test case has an error because the alias exists, as intended!
Fixes #753