From 96bff101196dbc672735082d7bdbefdb45f6f9a1 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Fri, 6 Jan 2017 18:25:49 +0300 Subject: [PATCH] [test] Skip tests for TelegramBot#sendContact() Bug: Please see note in test file! --- test/telegram.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/telegram.js b/test/telegram.js index bf102fa..4f0628a 100644 --- a/test/telegram.js +++ b/test/telegram.js @@ -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); });