Add MaxConnections to WebhookInfo
This commit is contained in:
parent
aa124ef1e8
commit
69bab9a28f
2 changed files with 4 additions and 0 deletions
|
@ -497,6 +497,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("[Telegram callback failed]%s", info.LastErrorMessage)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue