Skip to content

Commit 38f7831

Browse files
committed
Fix tests
1 parent 35fda99 commit 38f7831

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/test/java/com/pengrad/telegrambot/TelegramBotTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ public void setMessageReaction() {
12201220

12211221
@Test
12221222
public void getUserChatBoosts() {
1223-
ChatBoost[] chatBoosts = bot.execute(new GetUserChatBoosts(channelId, chatId.longValue())).boosts();
1223+
ChatBoost[] chatBoosts = bot.execute(new GetUserChatBoosts(channelId, chatId)).boosts();
12241224
assertEquals(chatBoosts.length, 0);
12251225
}
12261226

@@ -1578,7 +1578,7 @@ public void getCustomEmojiStickers() {
15781578

15791579
@Test
15801580
public void setCustomEmojiStickerSetThumbnail() {
1581-
String setName = "custom_emoji_set_by_pengrad_test_bot";
1581+
String setName = "custom_emoji_set_" + System.currentTimeMillis() + "_by_pengrad_test_bot";
15821582
BaseResponse response = bot.execute(
15831583
new CreateNewStickerSet(chatId, setName, "title",
15841584
new InputSticker[]{new InputSticker(stickerFileAnim, Sticker.Format.animated, new String[]{"\uD83D\uDE15"})},

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
44
<!-- This module was also published with a richer model, Gradle metadata, -->
55
<!-- which should be used instead. Do not delete the following line which -->

0 commit comments

Comments
 (0)