Skip to content

Commit c0fc58a

Browse files
committed
test: skip if flood control
1 parent 4098b39 commit c0fc58a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/api_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ func noError(t *testing.T, err error) bool {
3131
t.Skip("Permission to perform this action is denied")
3232
case api.ErrCaptcha:
3333
t.Skip("Captcha needed")
34+
case api.ErrFlood:
35+
t.Skip("Flood control")
3436
default:
3537
s := "\n"
3638
s += fmt.Sprintf("code: %d\n", e.Code)

0 commit comments

Comments
 (0)