Skip to content

Commit

Permalink
test: skip if flood control
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Jan 12, 2022
1 parent 4098b39 commit c0fc58a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func noError(t *testing.T, err error) bool {
t.Skip("Permission to perform this action is denied")
case api.ErrCaptcha:
t.Skip("Captcha needed")
case api.ErrFlood:
t.Skip("Flood control")
default:
s := "\n"
s += fmt.Sprintf("code: %d\n", e.Code)
Expand Down

0 comments on commit c0fc58a

Please sign in to comment.