2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 21:37:58 +00:00

[test] Skip tests for TelegramBot#sendContact()

Bug:

  Please see note in test file!
This commit is contained in:
GochoMugo 2017-01-06 18:25:49 +03:00
parent 6dabdb47d8
commit 96bff10119
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4

View File

@ -686,7 +686,13 @@ describe('Telegram', function telegramSuite() {
});
});
describe('#sendContact', function sendContactSuite() {
// NOTE: We are skipping TelegramBot#sendContact() as the
// corresponding rate-limits enforced by the Telegram servers
// are too strict! During our initial tests, we were required
// to retry after ~72000 secs (1200 mins / 20 hrs).
// We surely can NOT wait for that much time during testing
// (or in most practical cases for that matter!)
describe.skip('#sendContact', function sendContactSuite() {
before(function before() {
utils.handleRatelimit(bot, 'sendContact', this);
});