Skip to content

Commit

Permalink
Fixed typos in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreitbart committed Apr 24, 2020
1 parent 6686abd commit ec4826d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions album_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAlbumImgurSimulated(t *testing.T) {
}

if alb.Title != "Gianluca Gimini's bikes" || alb.Cover != "CJCA0gW" || alb.CoverWidth != 1200 || alb.CoverHeight != 786 || alb.Link != "https://imgur.com/a/VZQXk" || alb.ImagesCount != 1 || alb.Images[0].ID != "CJCA0gW" {
t.Error("Data comparision failed.")
t.Error("Data comparison failed.")

if alb.Title != "Gianluca Gimini's bikes" {
t.Errorf("Title is %v.\n", alb.Title)
Expand Down Expand Up @@ -68,7 +68,7 @@ func TestAlbumImgurReal(t *testing.T) {
}

if alb.Title != "Gianluca Gimini's bikes" || alb.Cover != "CJCA0gW" || alb.CoverWidth != 1200 || alb.CoverHeight != 786 || alb.Link != "https://imgur.com/a/VZQXk" || alb.ImagesCount != 14 || alb.Images[0].ID != "CJCA0gW" {
t.Error("Data comparision failed.")
t.Error("Data comparison failed.")

if alb.Title != "Gianluca Gimini's bikes" {
t.Errorf("Title is %v.\n", alb.Title)
Expand Down
2 changes: 1 addition & 1 deletion rateLimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestRateLimitRealRapidAPI(t *testing.T) {
t.FailNow()
}

// There seem to be not rate limites when using the payed API
// There seem to be not rate limites when using the paid API
if rl.ClientLimit != 0 || rl.UserLimit != 0 {
client.Log.Debugf("Found ClientLimit: %v and UserLimit: %v", rl.ClientLimit, rl.UserLimit)
t.Error("Client/User limits are wrong. Probably something broken. Or IMGUR changed their limits. Or you are using a free account for testing. Sorry. No real good way to test this.")
Expand Down

0 comments on commit ec4826d

Please # to comment.