Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pengrad committed Jul 8, 2024
1 parent 35fda99 commit 38f7831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ public void setMessageReaction() {

@Test
public void getUserChatBoosts() {
ChatBoost[] chatBoosts = bot.execute(new GetUserChatBoosts(channelId, chatId.longValue())).boosts();
ChatBoost[] chatBoosts = bot.execute(new GetUserChatBoosts(channelId, chatId)).boosts();
assertEquals(chatBoosts.length, 0);
}

Expand Down Expand Up @@ -1578,7 +1578,7 @@ public void getCustomEmojiStickers() {

@Test
public void setCustomEmojiStickerSetThumbnail() {
String setName = "custom_emoji_set_by_pengrad_test_bot";
String setName = "custom_emoji_set_" + System.currentTimeMillis() + "_by_pengrad_test_bot";
BaseResponse response = bot.execute(
new CreateNewStickerSet(chatId, setName, "title",
new InputSticker[]{new InputSticker(stickerFileAnim, Sticker.Format.animated, new String[]{"\uD83D\uDE15"})},
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<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"
<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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
Expand Down

0 comments on commit 38f7831

Please sign in to comment.