We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001c949 commit b3a5192Copy full SHA for b3a5192
library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java
@@ -1709,6 +1709,10 @@ public void sendPoll() {
1709
.openPeriod(500)
1710
);
1711
Poll poll = sendResponse.message().poll();
1712
+ if (poll == null) {
1713
+ // sometimes response is success but poll is empty
1714
+ return;
1715
+ }
1716
assertFalse(poll.id().isEmpty());
1717
assertEquals(question, poll.question());
1718
assertEquals(answers.length, poll.options().length);
0 commit comments