Add MaxConnections to WebhookInfo
(cherry picked from commit 69bab9a28f
)
This commit is contained in:
parent
1930c25aa6
commit
ca09b25f8c
2 changed files with 6 additions and 3 deletions
|
@ -501,7 +501,9 @@ func TestSetWebhookWithoutCert(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if info.MaxConnections == 0 {
|
||||
t.Errorf("wanted max connections to be greater than 0")
|
||||
}
|
||||
if info.LastErrorDate != 0 {
|
||||
t.Errorf("failed to set webhook: %s", info.LastErrorMessage)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue