Skip to content

Commit 275b778

Browse files
committed
Improve the test stability
1 parent 2cbd9a3 commit 275b778

File tree

1 file changed

+6
-0
lines changed
  • slack-api-client/src/test/java/test_with_remote_apis/methods

1 file changed

+6
-0
lines changed

slack-api-client/src/test/java/test_with_remote_apis/methods/stars_Test.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public void add() throws IOException, SlackApiException {
7777
}
7878

7979
{
80+
// To remove the star before calling stars.add
81+
slack.methods().starsRemove(r -> r
82+
.token(userToken)
83+
.channel(channelIds.get(0))
84+
.file(fileObj.getId()));
85+
8086
StarsAddResponse response = slack.methods().starsAdd(r -> r
8187
.token(userToken)
8288
.channel(channelIds.get(0))

0 commit comments

Comments
 (0)