Skip to content

Commit 814acce

Browse files
committed
update test to rm call to conversations.history
1 parent aa56553 commit 814acce

File tree

1 file changed

+1
-17
lines changed
  • slack-api-client/src/test/java/test_with_remote_apis/methods

1 file changed

+1
-17
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -892,14 +892,6 @@ public void postMessage_with_work_object_from_json() throws Exception {
892892
assertThat(attachments.get(0), is(not(nullValue())));
893893
assertThat(attachments.get(0).getFromUrl(),
894894
is("https://myappdomain.com/admin/slack/workobject/94/change/"));
895-
896-
// Verify if the message can be parsed by the JSON parser
897-
String ts = postResponse.getTs();
898-
ConversationsHistoryResponse history = slack.methods(botToken).conversationsHistory(r -> r
899-
.channel(randomChannelId)
900-
.oldest(ts)
901-
.inclusive(true));
902-
assertThat(history.getError(), is(nullValue()));
903895
}
904896

905897
// NOTE: You need to add "myappdomain.com" at
@@ -952,15 +944,7 @@ public void postMessage_with_work_object_from_object() throws Exception {
952944
assertThat(attachments, is(not(nullValue())));
953945
assertThat(attachments.get(0), is(not(nullValue())));
954946
assertThat(attachments.get(0).getFromUrl(),
955-
is("https://myappdomain.com/admin/slack/workobject/94/change/"));
956-
957-
// Verify if the message can be parsed by the JSON parser
958-
String ts = postResponse.getTs();
959-
ConversationsHistoryResponse history = slack.methods(botToken).conversationsHistory(r -> r
960-
.channel(randomChannelId)
961-
.oldest(ts)
962-
.inclusive(true));
963-
assertThat(history.getError(), is(nullValue()));
947+
is("https://myappdomain.com/id/F123456"));
964948
}
965949

966950
@Test

0 commit comments

Comments
 (0)