@@ -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